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:
9436745
)
Fix single character access
author
Sam Reed
<reedy@users.mediawiki.org>
Thu, 22 Sep 2011 14:57:08 +0000
(14:57 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Thu, 22 Sep 2011 14:57:08 +0000
(14:57 +0000)
includes/Linker.php
patch
|
blob
|
history
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
4bb3dc6
..
84ede27
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-1305,7
+1305,7
@@
class Linker {
# bug 7425
$target = trim( $target );
# Look at the first character
- if ( $target != '' && $target
{ 0 }
=== '/' ) {
+ if ( $target != '' && $target
[0]
=== '/' ) {
# / at end means we don't want the slash to be shown
$m = array();
$trailingSlashes = preg_match_all( '%(/+)$%', $target, $m );