diff --git a/backup/backup_check.html b/backup/backup_check.html
index fdcce87c27a..8ac978b1184 100644
--- a/backup/backup_check.html
+++ b/backup/backup_check.html
@@ -83,8 +83,9 @@
echo get_string("name").":";
echo "
";
//Calculate the backup string
- //Take off spaces in the filename !!
- $backup_name = str_replace(" ","_",strtolower(get_string("backupfilename")));
+ //Take off some characters in the filename !!
+ $takeoff = array(" ", ":", "/", "\\", "|");
+ $backup_name = str_replace($takeoff,"_",strtolower(get_string("backupfilename")));
//If non-translated, use "backup"
if (substr($backup_name,0,1) == "[") {
$backup_name = "backup";
@@ -95,10 +96,9 @@
if (substr($backup_name_format,0,1) == "[") {
$backup_name_format = "%%Y%%m%%d-%%H%%M";
}
- $backup_name .= str_replace(" ","_","-".strtolower($course->shortname)."-".userdate(time(),$backup_name_format,99,false).".zip");
- echo $backup_name;
- //Add as hidden name
- echo "";
+ $backup_name .= str_replace($takeoff,"_","-".strtolower($course->shortname)."-".userdate(time(),$backup_name_format,99,false).".zip");
+ //Add as text field
+ echo "";
echo " | ";
//Calculate the backup unique code to allow simultaneus backups (to define