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:
37fce46
)
Code clarity tweak
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 18 Jan 2010 00:14:47 +0000
(
00:14
+0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Mon, 18 Jan 2010 00:14:47 +0000
(
00:14
+0000)
includes/Sanitizer.php
patch
|
blob
|
history
diff --git
a/includes/Sanitizer.php
b/includes/Sanitizer.php
index
9370583
..
9bcc18b
100644
(file)
--- a/
includes/Sanitizer.php
+++ b/
includes/Sanitizer.php
@@
-935,12
+935,11
@@
class Sanitizer {
* @return Array
*/
public static function decodeTagAttributes( $text ) {
- $attribs = array();
-
if( trim( $text ) == '' ) {
- return
$attribs
;
+ return
array()
;
}
+ $attribs = array();
$pairs = array();
if( !preg_match_all(
MW_ATTRIBS_REGEX,