patch for Text/Wiki/rules/url.php

From: Date: Wed, 07 Jan 2004 01:07:42 +0000
Subject: patch for Text/Wiki/rules/url.php
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24836@lists.php.net to get a copy of this message
another tiny patch. this fixes a problem with the url rule that was tripped up by something like: # http://www.wcsb.org/ # ftp://ftp.redhat.com/ # news://news.mozilla.org/ cheers. jim

===== url.php 1.1 vs edited ===== --- 1.1/lib/Text/Wiki/rules/url.php Tue Jan 6 11:29:34 2004 +++ edited/url.php Tue Jan 6 17:01:46 2004 @@ -96,7 +96,7 @@ function parse() { - $this->regex = "(http:|mailto:|https:|ftp:|gopher:|news:)([^ \\/\"\']*\\/)*[^ \\t\\n\\/\"\'{$this->_wiki->delim}]*[A-Za-z0-9\\/?=&~_]"; + $this->regex = "(http:|mailto:|https:|ftp:|gopher:|news:)([^ \\/\"\'{$this->_wiki->delim}]*\\/)*[^ \\t\\n\\/\"\'{$this->_wiki->delim}]*[A-Za-z0-9\\/?=&~_]"; // ------------------------------------------------------------- // @@ -307,4 +307,4 @@ return $output; } } -?> \ No newline at end of file +?>
« previous php.pear.dev (#24836) next »