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:
b2ac0fc
)
Fix autonumbering that was broke following bug 787 fixing
author
Antoine Musso
<hashar@users.mediawiki.org>
Fri, 8 Jul 2005 06:13:00 +0000
(06:13 +0000)
committer
Antoine Musso
<hashar@users.mediawiki.org>
Fri, 8 Jul 2005 06:13:00 +0000
(06:13 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
8a71105
..
720c2da
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-1064,7
+1064,7
@@
class Parser
# No link text, e.g. [http://domain.tld/some.link]
if ( $text == '' ) {
# Autonumber if allowed
- if ( strpos( HTTP_PROTOCOLS,
$protocol
) !== false ) {
+ if ( strpos( HTTP_PROTOCOLS,
str_replace('/','\/', $protocol)
) !== false ) {
$text = '[' . ++$this->mAutonumber . ']';
$linktype = 'autonumber';
} else {