Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24175
Modified Files:
Tag: branch_0_6
serendipity_functions.inc.php
Log Message:
MFH
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.248.4.5
retrieving revision 1.248.4.6
diff -u -d -r1.248.4.5 -r1.248.4.6
--- serendipity_functions.inc.php 3 May 2004 08:01:31 -0000 1.248.4.5
+++ serendipity_functions.inc.php 3 May 2004 11:06:45 -0000 1.248.4.6
@@ -1464,12 +1464,13 @@
$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'])) {
|