mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-18 21:48:24 -04:00
avoid duplication of ID check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user