Fix #5911 - issue with password
[Pman.Core] / widgets / SecurePass.js
index 778d6ab..8190c7d 100644 (file)
@@ -179,7 +179,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
             return true;
         }
         
-        if ('[\x21-\x7e]*'.match(value)) {
+        if (value.match(/[\x21-\x7e]*/)) {
             this.markInvalid(this.errors.PwdBadChar);
             return false;
         }