Browse files

PARAM_ALPHA now converts to lowercase; merged from MOODLE_14_STABLE

  • Loading branch information...
1 parent 2276693 commit 01accf3efa018b8b9262012976b0b84da63d677f skodak committed Feb 3, 2005
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/moodlelib.php
View
3 lib/moodlelib.php
@@ -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

0 comments on commit 01accf3

Please sign in to comment.