From: willcast Date: Wed, 26 Nov 2003 14:38:34 +0000 (+0000) Subject: - Removing tags from glossary name when exporting the entries. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=65a6c7bb3f23db8b092ac3ff594b4a746a953bdb;p=moodle.git - Removing tags from glossary name when exporting the entries. --- diff --git a/mod/glossary/export.php b/mod/glossary/export.php index cff6cf3168..b8bc890593 100644 --- a/mod/glossary/export.php +++ b/mod/glossary/export.php @@ -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 { diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 266b2fb346..f3e0da2846 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -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,"\n");