- Removing tags from glossary name when exporting the entries.

This commit is contained in:
willcast
2003-11-26 14:38:34 +00:00
parent 3bc5359621
commit 65a6c7bb3f
2 changed files with 2 additions and 2 deletions
+1 -1
View 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 {
+1 -1
View 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");