From 12719a100c59d2f34af1cb539eee1df0f2fd046c Mon Sep 17 00:00:00 2001 From: kink Date: Sun, 8 Jun 2003 16:15:02 +0000 Subject: [PATCH] MS Exch can be set up that users have to use DOMAIN/username/mailbox to log in. We need to strip these chars before creating the prefs file, because of course a slash in the name gives problems. It may be possible to strip out other 'illegal' chars here aswell. Closes (#745814). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4980 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/prefs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/prefs.php b/functions/prefs.php index 9b35834a..10ea919a 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -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. */ -- 2.25.1