From f4a3fd085f3193de88523a95aad2a3e28752dc3a Mon Sep 17 00:00:00 2001 From: pallo Date: Mon, 18 Dec 2000 13:13:52 +0000 Subject: [PATCH] Fixed bug in readShortMailboxName() if "needle" (delimiter) is empty. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@894 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 1 + 1 file changed, 1 insertion(+) diff --git a/functions/strings.php b/functions/strings.php index 7e424375..fc466528 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -15,6 +15,7 @@ // of the $haystack is reached. $needle is a single character //************************************************************************* function readShortMailboxName($haystack, $needle) { + if ($needle == "") return $haystack; if ($needle == ".") $needle = "\."; ereg("([^$needle]+)$needle?$", $haystack, $regs); return $regs[1]; -- 2.25.1