]> git.mjollnir.org Git - moodle.git/commitdiff
Get tough on possible sessioncookies to avoid possible lockout problems
authormoodler <moodler>
Wed, 31 Mar 2004 04:14:13 +0000 (04:14 +0000)
committermoodler <moodler>
Wed, 31 Mar 2004 04:14:13 +0000 (04:14 +0000)
caused by some characters in the cookie name

admin/config.php

index 0d710f793dc4de1043adf59847734fad912906b1..1b03783883fdd329421ca565e9516ab49ea91348 100644 (file)
@@ -28,7 +28,7 @@
             print_header();
             foreach ($config as $name => $value) {
                 if ($name == "sessioncookie") {
-                    $value = clean_filename($value);
+                    $value = eregi_replace("[^a-zA-Z]", "", $value);
                 }
                 unset($conf);
                 $conf->name  = $name;