Skip to content
Browse files

- Removing tags from glossary name when exporting the entries.

  • Loading branch information...
1 parent 3bc5359 commit 65a6c7bb3f23db8b092ac3ff594b4a746a953bdb willcast committed Nov 26, 2003
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/glossary/export.php
  2. +1 −1 mod/glossary/lib.php
View
2 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 {
View
2 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,"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");

0 comments on commit 65a6c7b

Please sign in to comment.
Something went wrong with that request. Please try again.