Update of /cvsroot/php-blog/serendipity/templates/moz-modern
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3568/templates/moz-modern
Modified Files:
Tag: branch-0-7
layout.php
Log Message:
* fix random seeding of spamblock captcha plugin (even though it should work without)
* different fix for XSS: We can'T fix it in layout.php because we have no controler over users templates. So we need to do escaping on an earlier step.
* Needs to be ported to HEAD as well, please!
Index: layout.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/templates/moz-modern/layout.php,v
retrieving revision 1.7.4.1
retrieving revision 1.7.4.2
diff -u -d -r1.7.4.1 -r1.7.4.2
--- layout.php 1 Dec 2004 13:56:31 -0000 1.7.4.1
+++ layout.php 1 Dec 2004 14:52:03 -0000 1.7.4.2
@@ -57,11 +57,11 @@
}
if ($r === true) {
- printf(NO_ENTRIES_BLAHBLAH, strip_tags($serendipity['GET']['searchTerm']));
+ printf(NO_ENTRIES_BLAHBLAH, $serendipity['GET']['searchTerm']);
break;
}
- printf(YOUR_SEARCH_RETURNED_BLAHBLAH, strip_tags($serendipity['GET']['searchTerm'], count($r)));
+ printf(YOUR_SEARCH_RETURNED_BLAHBLAH, $serendipity['GET']['searchTerm'], count($r));
serendipity_printEntries($r);
break;
|