Pārlūkot izejas kodu

Fixed bug in readShortMailboxName() if "needle" (delimiter) is empty.

pallo 24 gadi atpakaļ
vecāks
revīzija
d05b70622e
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      functions/strings.php

+ 1 - 0
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];