Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18860
Modified Files:
serendipity_functions.inc.php NEWS
Log Message:
fixed bad regex for trackback autodiscovery. no attribute after 'href' was allowed, thus making <a href="link" class="bbcode">..</a> didn't match.
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.199
retrieving revision 1.200
diff -u -d -r1.199 -r1.200
--- NEWS 11 Aug 2004 09:32:53 -0000 1.199
+++ NEWS 13 Aug 2004 12:58:04 -0000 1.200
@@ -3,6 +3,9 @@
Version 0.7 ()
------------------------------------------------------------------------
+ * Improved link detection routine for sending trackbacks, fixes
+ problems with bbcode-transformed URLs (garvinhicking)
+
* Fixed missing image display for rescaling images, when file was
outside of parent upload directory [Bug #1007003] (garvinhicking)
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.394
retrieving revision 1.395
diff -u -d -r1.394 -r1.395
--- serendipity_functions.inc.php 11 Aug 2004 10:27:59 -0000 1.394
+++ serendipity_functions.inc.php 13 Aug 2004 12:58:04 -0000 1.395
@@ -2463,7 +2463,7 @@
{
global $serendipity;
- if (!preg_match_all('@<a[^>]+?href\s*=\s*["\']?([^\'" >]+?)[ \'"]?>([^<]*)</a>@i', $text, $matches)) {
+ if (!preg_match_all('@<a[^>]+?href\s*=\s*["\']?([^\'" >]+?)[ \'"]?[^>]*>([^<]*)</a>@i', $text, $matches)) {
return;
}
|