dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63167c6
)
strcspn bug: http://bugs.php.net/bug.php?id=39032
author
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 4 Oct 2006 08:43:09 +0000
(08:43 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 4 Oct 2006 08:43:09 +0000
(08:43 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
31ec709
..
2502136
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-2561,9
+2561,14
@@
class Parser
$found = 'pipe';
} elseif ( $text[$i] == $currentClosing ) {
$found = 'close';
- } else {
+ } else
if ( isset( $callbacks[$text[$i]] ) )
{
$found = 'open';
$rule = $callbacks[$text[$i]];
+ } else {
+ # Some versions of PHP have a strcspn which stops on null characters
+ # Ignore and continue
+ ++$i;
+ continue;
}
} else {
# All done