Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv22664
Modified Files:
serendipity_functions.inc.php
Log Message:
Fixed strange problem with some URLs not being formatted for exit-tracking if the URL appears more than once
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.142
retrieving revision 1.143
diff -u -d -r1.142 -r1.143
--- serendipity_functions.inc.php 30 Aug 2003 09:55:09 -0000 1.142
+++ serendipity_functions.inc.php 30 Aug 2003 14:56:03 -0000 1.143
@@ -1162,7 +1162,7 @@
$serendipity['encodeExitsCallback_entry_id'] = $entry_id;
$ret = preg_replace_callback(
- "#<a(.*)href=(\"|')http://([^\"']+)(\"|')#im",
+ "#<a(.*)href=(\"|')http://([^\"']+)(\"|')#isUm",
'serendipity_encodeExitsCallback',
$ret
);
@@ -1180,7 +1180,7 @@
*/
function serendipity_encodeExitsCallback($buffer) {
global $serendipity;
-
+
$entry_id = $serendipity['encodeExitsCallback_entry_id'];
$url = 'http://' . $buffer[3];
|