PARAM_ALPHA now converts to lowercase; merged from MOODLE_14_STABLE

This commit is contained in:
skodak
2005-02-03 22:53:49 +00:00
parent 2276693799
commit 01accf3efa
+2 -1
View File
@@ -200,7 +200,8 @@ function clean_param($param, $options) {
}
if ($options & PARAM_ALPHA) { // Remove everything not a-z
$param = eregi_replace('[^a-z]', '', $param);
$param = eregi_replace('[^a-zA-Z]', '', $param);
$param = strtolower($param);
}
if ($options & PARAM_ALPHANUM) { // Remove everything not a-zA-Z0-9