diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-27 21:07:16 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-27 21:07:16 +0100 |
commit | 5c86d9ef4d7d36f227873bff75f94a6f8c64e3a8 (patch) | |
tree | 3755121d3088faeea25cbf650ba658b4e539573d /includes | |
parent | 53d271c34a3934957cd0c5fdf0effaae650839f3 (diff) | |
download | website-5c86d9ef4d7d36f227873bff75f94a6f8c64e3a8.tar.gz website-5c86d9ef4d7d36f227873bff75f94a6f8c64e3a8.tar.bz2 website-5c86d9ef4d7d36f227873bff75f94a6f8c64e3a8.tar.xz website-5c86d9ef4d7d36f227873bff75f94a6f8c64e3a8.zip |
Adjust what kind of characters are allowed in username/password
Diffstat (limited to 'includes')
-rw-r--r-- | includes/libs/libstrutils.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/libs/libstrutils.php b/includes/libs/libstrutils.php index bc0896d..ee81c33 100644 --- a/includes/libs/libstrutils.php +++ b/includes/libs/libstrutils.php @@ -1,10 +1,10 @@ <?php - define("BAD_STRING_DESC", "Only printable characters (except spaces and \") are allowed."); + define("BAD_STRING_DESC", "Only alphanumeric characters are allowed."); function check_chars($string) { - return ctype_graph($string) && (strpos($string, '"') === FALSE); + return ctype_alnum($string) && (strpos($string, '"') === FALSE); } -?>
\ No newline at end of file +?> |