[geeklog-cvs] geeklog: Content in curly braces in a static page was mistaken f...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Nov 21 06:48:18 EST 2009


changeset 7479:f4f296d8d2a6
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/f4f296d8d2a6
user: Dirk Haun <dirk at haun-online.de>
date: Sat Nov 21 11:08:14 2009 +0100
description:
Content in curly braces in a static page was mistaken for template variables in the static pages editor (bug #0001038)

diffstat:

 public_html/admin/plugins/staticpages/index.php |  2 ++
 public_html/docs/history                        |  2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r 3a69d326b1af -r f4f296d8d2a6 public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php	Thu Nov 19 10:31:00 2009 +0100
+++ b/public_html/admin/plugins/staticpages/index.php	Sat Nov 21 11:08:14 2009 +0100
@@ -361,6 +361,8 @@
     $content = '';
     if (isset($A['sp_content'])) {
         $content = htmlspecialchars(stripslashes($A['sp_content']));
+        $content = str_replace(array('{', '}'), array('{', '}'),
+                               $content);
     }
     $sp_template->set_var('sp_content', $content);
     if ($_SP_CONF['filter_html'] == 1) {
diff -r 3a69d326b1af -r f4f296d8d2a6 public_html/docs/history
--- a/public_html/docs/history	Thu Nov 19 10:31:00 2009 +0100
+++ b/public_html/docs/history	Sat Nov 21 11:08:14 2009 +0100
@@ -17,6 +17,8 @@
 
 Static Pages Plugin
 -------------------
+- Content in curly braces in a static page was mistaken for template variables
+  in the static pages editor (bug #0001038) [Dirk]
 - Added missing code to handle $_SP_CONF['includesearchcenterblocks'] and
   $_SP_CONF['includesearchphp'] options that was accidentally left out when
   merging Tom's patch [Dirk]



More information about the geeklog-cvs mailing list