mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-25 07:45:29 -04:00
avoid duplication of ID check
This commit is contained in:
parent
629f263cf5
commit
7825471d70
3 changed files with 8 additions and 3 deletions
|
@ -155,7 +155,7 @@ abstract class AbstractModel
|
|||
*/
|
||||
public static function isValidId($id)
|
||||
{
|
||||
return (bool) preg_match('#\A[a-f\d]{16}\z#', (string) $id);
|
||||
return (bool) preg_match('#\A[a-f0-9]{16}\z#', (string) $id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue