[geeklog-cvs] geeklog: Partial fix for bug #0001393: When creating the What's ...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Sep 24 14:22:28 EDT 2011


changeset 8420:5e8ea88b67b7
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/5e8ea88b67b7
user: Dirk Haun <dirk at haun-online.de>
date: Sat Sep 24 20:21:29 2011 +0200
description:
Partial fix for bug #0001393: When creating the What's Related block, run COM_checkWords() over the separate entries, not the entire HTML list to avoid censoring the HTML code.

diffstat:

 system/lib-story.php |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 7aaea8278251 -r 5e8ea88b67b7 system/lib-story.php
--- a/system/lib-story.php	Sat Sep 24 20:13:35 2011 +0200
+++ b/system/lib-story.php	Sat Sep 24 20:21:29 2011 +0200
@@ -596,6 +596,10 @@
         $rel = array ();
     }
 
+    foreach ($rel as &$value) {
+        $value = COM_checkWords($value);
+    }
+
     if( !COM_isAnonUser() || (( $_CONF['loginrequired'] == 0 ) &&
            ( $_CONF['searchloginrequired'] == 0 ))) {
         // add a link to "search by author"
@@ -615,7 +619,7 @@
     $related = '';
     if( count( $rel ) > 0 )
     {
-        $related = COM_checkWords( COM_makeList( $rel, 'list-whats-related' ));
+        $related = COM_makeList( $rel, 'list-whats-related' );
     }
 
     return( $related );



More information about the geeklog-cvs mailing list