MDL-20821 reverting untested ereg cleanup, not acceptable for stable, sorry

This commit is contained in:
Petr Skoda
2009-11-19 09:56:52 +00:00
parent 199be8868e
commit 59fa78efa4
7 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -1264,10 +1264,10 @@ class Worksheet extends BIFFwriter
}
// Strip the '=' or '@' sign at the beginning of the formula string
if (preg_match("/^=/",$formula)) {
if (ereg("^=",$formula)) {
$formula = preg_replace("/(^=)/","",$formula);
}
elseif(preg_match("/^@/",$formula)) {
elseif(ereg("^@",$formula)) {
$formula = preg_replace("/(^@)/","",$formula);
}
else {