From: Antoine Musso Date: Fri, 8 Jul 2005 06:13:00 +0000 (+0000) Subject: Fix autonumbering that was broke following bug 787 fixing X-Git-Tag: 1.5.0beta4~197 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/supprimer.php?a=commitdiff_plain;h=73fc00251699cc8ae137e142809a32e7004c73bd;p=lhc%2Fweb%2Fwiklou.git Fix autonumbering that was broke following bug 787 fixing --- 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 {