Subtle regex fixes.

This commit is contained in:
nikolark committed 2011-09-21 00:09:35 +02:00
1 parent 57409da756
commit f73dcc0e57
1 file changed
+1 -1
+1 -1
View File
@@ -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;