replace split by preg_split

This commit is contained in:
Sébastien Lucas 2014-02-11 21:00:43 +01:00
parent e8088771c9
commit 42492b5cf2

View file

@ -599,8 +599,8 @@ class EPub {
if ($b[0] == "/") if ($b[0] == "/")
throw new InvalidArgumentException("Second path part must not start with " . $m_Separator); throw new InvalidArgumentException("Second path part must not start with " . $m_Separator);
$splittedA = split("/", $a); $splittedA = preg_split("/", $a);
$splittedB = split("/", $b); $splittedB = preg_split("/", $b);
$pathParts = array(); $pathParts = array();
$mergedPath = array_merge($splittedA, $splittedB); $mergedPath = array_merge($splittedA, $splittedB);