]> git.mjollnir.org Git - moodle.git/commitdiff
Old fix for site names with apostrophes in them
authormoodler <moodler>
Tue, 13 Feb 2007 03:16:22 +0000 (03:16 +0000)
committermoodler <moodler>
Tue, 13 Feb 2007 03:16:22 +0000 (03:16 +0000)
lib/moodlelib.php

index 0c1ed7672c5721330d842d29e9982cf730196b3e..635d034fdf4cded278ba44d16da83ed7f65ad3e1 100644 (file)
@@ -586,7 +586,7 @@ function set_config($name, $value, $plugin=NULL) {
             $config = new object();
             $config->plugin = addslashes($plugin);
             $config->name   = $name;
-            $config->value  = $value;
+            $config->value  = addslashes($value);
             return insert_record('config_plugins', $config);
         }
     }