From 73fc00251699cc8ae137e142809a32e7004c73bd Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Fri, 8 Jul 2005 06:13:00 +0000 Subject: [PATCH] Fix autonumbering that was broke following bug 787 fixing --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 8a7110506c..720c2da874 100644 --- 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 { -- 2.20.1