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:
e476e97
)
Fix YET ANOTHER PHP WEAK TYPING BUG
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 6 Sep 2009 15:08:10 +0000
(15:08 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 6 Sep 2009 15:08:10 +0000
(15:08 +0000)
Literal "0" was getting quoted. Because, of course, 0 is equal to the
empty string.
includes/Html.php
patch
|
blob
|
history
diff --git
a/includes/Html.php
b/includes/Html.php
index
a58459d
..
8a518df
100644
(file)
--- a/
includes/Html.php
+++ b/
includes/Html.php
@@
-237,7
+237,7
@@
class Html {
# marks omitted, but not all. (Although a literal " is not
# permitted, we don't check for that, since it will be escaped
# anyway.)
- if ( $wgWellFormedXml || $value == ''
+ if ( $wgWellFormedXml || $value ==
=
''
|| preg_match( "/[ '=<>]/", $value ) ) {
$quote = '"';
} else {