summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-27 21:07:16 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2010-02-27 21:07:16 +0100
commit5c86d9ef4d7d36f227873bff75f94a6f8c64e3a8 (patch)
tree3755121d3088faeea25cbf650ba658b4e539573d /includes
parent53d271c34a3934957cd0c5fdf0effaae650839f3 (diff)
downloadwebsite-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.php6
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
+?>