Fix autonumbering that was broke following bug 787 fixing
authorAntoine Musso <hashar@users.mediawiki.org>
Fri, 8 Jul 2005 06:13:00 +0000 (06:13 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Fri, 8 Jul 2005 06:13:00 +0000 (06:13 +0000)
includes/Parser.php

index 8a71105..720c2da 100644 (file)
@@ -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 {