script needs to be added inside the widgets
[squirrelmail.git] / functions / prefs.php
index 9b35834aa3d52ac71fee3cedada912c03077b09f..10ea919a3d78f2e76454382eb9e66ca8f959dff4 100644 (file)
@@ -51,7 +51,8 @@ function getHashedFile($username, $dir, $datafile, $hash_search = true) {
     /* First, get and make sure the full hash directory exists. */
     $real_hash_dir = getHashedDir($username, $dir, $hash_dirs);
 
-    /* Set the value of our real data file. */
+    /* Set the value of our real data file, after we've removed unwanted characters. */
+    $datafile = str_replace('/', '_', $datafile);
     $result = "$real_hash_dir/$datafile";
 
     /* Check for this file in the real hash directory. */