]> git.mjollnir.org Git - moodle.git/commitdiff
- Removing tags from glossary name when exporting the entries.
authorwillcast <willcast>
Wed, 26 Nov 2003 14:38:34 +0000 (14:38 +0000)
committerwillcast <willcast>
Wed, 26 Nov 2003 14:38:34 +0000 (14:38 +0000)
mod/glossary/export.php
mod/glossary/lib.php

index cff6cf316888efafcdb3a323a4f132117df2eef8..b8bc8905934b856aa0b60959ef086a657dcfbed0 100644 (file)
@@ -66,7 +66,7 @@
     glossary_generate_export_file($glossary,$lastl,$lastcat);
     print_string("glosssaryexported","glossary");
 
-    $ffurl = "/$course->id/glossary/" . clean_filename($glossary->name) ."/glossary.xml";
+    $ffurl = "/$course->id/glossary/" . clean_filename(strip_tags($glossary->name)) ."/glossary.xml";
     if ($CFG->slasharguments) {
         $ffurl = "../../file.php$ffurl" ;
     } else {
index 266b2fb3467d578edc2aa3e00f32b03249b0e136..f3e0da2846e20a3248d5f6ff07584089934a3f9b 100644 (file)
@@ -1587,7 +1587,7 @@ function glossary_open_xml($glossary) {
 
         //Open for writing
 
-        $file = $CFG->dataroot."/$glossary->course/glossary/". clean_filename($glossary->name) ."/glossary.xml";
+        $file = $CFG->dataroot."/$glossary->course/glossary/". clean_filename(strip_tags($glossary->name)) ."/glossary.xml";
         $h = fopen($file,"w");
         //Writes the header
         $status = fwrite ($h,"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");