dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
1ba29a5
)
Merge "Use strtr() for clarity"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 14 Jun 2017 20:18:58 +0000
(20:18 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 14 Jun 2017 20:18:59 +0000
(20:18 +0000)
includes/Sanitizer.php
patch
|
blob
|
history
diff --git
a/includes/Sanitizer.php
b/includes/Sanitizer.php
index
5aaa3ed
..
8920e92
100644
(file)
--- a/
includes/Sanitizer.php
+++ b/
includes/Sanitizer.php
@@
-1207,7
+1207,7
@@
class Sanitizer {
];
$id = urlencode( strtr( $id, ' ', '_' ) );
- $id = str
_replace( array_keys( $replace ), array_values( $replace ), $id
);
+ $id = str
tr( $id, $replace
);
if ( !preg_match( '/^[a-zA-Z]/', $id ) && !in_array( 'noninitial', $options ) ) {
// Initial character must be a letter!