Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24032
Modified Files:
serendipity_functions.inc.php
Log Message:
Important: changed order of event plugin execution for RSS feed, to make
sure that relative s9y-paths are translated to absolute ones.
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.258
retrieving revision 1.259
diff -u -d -r1.258 -r1.259
--- serendipity_functions.inc.php 3 May 2004 07:56:02 -0000 1.258
+++ serendipity_functions.inc.php 3 May 2004 11:05:57 -0000 1.259
@@ -1516,12 +1516,12 @@
$ext = '';
}
+ serendipity_plugin_api::hook_event('frontend_display', $entry);
// 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']);
// jbalcorn: clean up body for XML compliance as best we can.
$entry['body'] = xhtml_cleanup($entry['body']);
- serendipity_plugin_api::hook_event('frontend_display', $entry);
// extract author information
if (empty($entry['email'])) {
|