cvs: pear /Text_Wiki/Text/Wiki/Parse/BBCode Url.php
| From: | Firman Wandayandi | Date: | Tue, 25 Oct 2005 05:15:30 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki/Parse/BBCode Url.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35839@lists.php.net to get a copy of this message | ||
firman Tue Oct 25 01:15:30 2005 EDT
Modified files:
/pear/Text_Wiki/Text/Wiki/Parse/BBCode Url.php
Log:
Request #5767: relative [url] syntax not supported (e.g. [url=/contact.php])
http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Parse/BBCode/Url.php?r1=1.5&r2=1.6&ty=u
Index: pear/Text_Wiki/Text/Wiki/Parse/BBCode/Url.php
diff -u pear/Text_Wiki/Text/Wiki/Parse/BBCode/Url.php:1.5
pear/Text_Wiki/Text/Wiki/Parse/BBCode/Url.php:1.6
--- pear/Text_Wiki/Text/Wiki/Parse/BBCode/Url.php:1.5 Thu Aug 11 06:23:50 2005
+++ pear/Text_Wiki/Text/Wiki/Parse/BBCode/Url.php Tue Oct 25 01:15:30 2005
@@ -15,7 +15,7 @@
* @author Bertrand Gugger <bertrand@toggg.com>
* @copyright 2005 bertrand Gugger
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Url.php,v 1.5 2005/08/11 10:23:50 toggg Exp $
+ * @version CVS: $Id: Url.php,v 1.6 2005/10/25 05:15:30 firman Exp $
* @link http://pear.php.net/package/Text_Wiki
*/
@@ -98,6 +98,7 @@
foreach ($prefixes as $val) {
$url .= '|' . preg_quote($val, '#') . '\.';
}
+ $url .= '|/';
$host = $this->getConf('host_regexp', $default['host_regexp']);
// the full url regexp
$url .= ')' . $host . $this->getConf('path_regexp',
$default['path_regexp']);