Subtle regex fixes.
This commit is contained in:
1 parent
57409da756
commit
f73dcc0e57
1 file changed
+1
-1
+1
-1
@@ -74,7 +74,7 @@ class User {
|
||||
return false;
|
||||
}
|
||||
/* No double nor single quotes */
|
||||
if(preg_match('/["\'\\]+/', $data['password1'])) {
|
||||
if(preg_match('/[\\\"\']+/', $data['password1'])) {
|
||||
notify("Passordet kan ikke inneholde enkel- eller dobbelfnutt eller bakslask.");
|
||||
$this->id = -1;
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user