Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv5976
Modified Files:
serendipity_functions.inc.php
Log Message:
Because in RSS feeds only absolute URLs are valid, change the
encodeExitsCallback() function to return the full path to exit.php -
shouldn't to any harm to the frontend, and will fix the invalid RSS feed.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -d -r1.165 -r1.166
--- serendipity_functions.inc.php 13 Oct 2003 20:35:34 -0000 1.165
+++ serendipity_functions.inc.php 11 Nov 2003 14:11:35 -0000 1.166
@@ -1168,7 +1168,7 @@
// Do some relative -> absolute URI replacing magic. Replaces all HREF/SRC (<a>, <img>, ...) references to only the serendipitypath with the full baseURL URI
// garvin: Could impose some problems. Closely watch this one.
- $entry['body'] = preg_replace('@(href|src)=("|\')(' . preg_quote($serendipity['serendipityHTTPPath']) . ')(.*)("|\')( |>)@imsU', '\1=\2' . $serendipity['baseURL'] . '\4\2\6', $entry['body']);
+ $entry['body'] = preg_replace('@(href|src)=("|\')(' . preg_quote($serendipity['serendipityHTTPPath']) . ')(.*)("|\')(.*)>@imsU', '\1=\2' . $serendipity['baseURL'] . '\4\2\6>', $entry['body']);
?>
<item>
<title><?php echo utf8_encode(htmlspecialchars($entry['title'])); ?></title>
@@ -1372,7 +1372,7 @@
return sprintf(
'<a%shref="%sexit.php?url=%s%s" title="%s" onMouseOver="window.status=\'%s\';return true;" onMouseOut="window.status=\'\';return true;"',
$buffer[1],
- $serendipity['serendipityHTTPPath'],
+ $serendipity['baseURL'],
base64_encode($url),
($entry_id != 0) ? '&entry_id=' . $entry_id : '',
$url,
|