]> git.mjollnir.org Git - moodle.git/commitdiff
Clean sessioncookie variable
authormoodler <moodler>
Thu, 18 Dec 2003 16:46:34 +0000 (16:46 +0000)
committermoodler <moodler>
Thu, 18 Dec 2003 16:46:34 +0000 (16:46 +0000)
admin/config.php

index d96939e953953d6706858366970f8cec3a8548e6..0d710f793dc4de1043adf59847734fad912906b1 100644 (file)
@@ -27,6 +27,9 @@
         if (count($err) == 0) {
             print_header();
             foreach ($config as $name => $value) {
+                if ($name == "sessioncookie") {
+                    $value = clean_filename($value);
+                }
                 unset($conf);
                 $conf->name  = $name;
                 $conf->value = $value;