From 924668fe2c263ad540d60514ea30d17e53ad113c Mon Sep 17 00:00:00 2001 From: Edoardo Vacchi Date: Thu, 6 Mar 2014 10:00:57 +0100 Subject: [PATCH 01/18] Issue #14 : XSS fix --- fp-interface/sharedtpls/comment-form.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fp-interface/sharedtpls/comment-form.tpl b/fp-interface/sharedtpls/comment-form.tpl index ff667f1..7fd352e 100644 --- a/fp-interface/sharedtpls/comment-form.tpl +++ b/fp-interface/sharedtpls/comment-form.tpl @@ -33,6 +33,7 @@

+ {* do action *} {comment_form} @@ -42,7 +43,7 @@

+ id="content" rows="10" cols="74">{$values.content|wp_specialchars:1}

{*here will go a plugin hook*}
From 14302c981c8c13d92095e226150ec78123f48963 Mon Sep 17 00:00:00 2001 From: MarcThibeault Date: Sat, 15 Mar 2014 16:46:59 -0400 Subject: [PATCH 02/18] Add mention to GitHub in the default blog entry --- setup/lang/lang.en-us.php | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/lang/lang.en-us.php b/setup/lang/lang.en-us.php index 9fc0a06..46feca5 100644 --- a/setup/lang/lang.en-us.php +++ b/setup/lang/lang.en-us.php @@ -158,6 +158,7 @@ Want to see more? [list] [*]Support the project with a [url=http://www.flatpress.org/home/static.php?page=donate]small donation[/url] +[*]Contribute to the development of Flatpress on [url="https://github.com/evacchi/flatpress"]GitHub[/url]! [*]Translate FlatPress or the documentation into [url=http://wiki.flatpress.org/res:language]your language[/url] [*]Share your knowledge with other people on the [url=http://www.flatpress.org/forums/categories.php]forums[/url] [*]Spread the word! From 4637637116ab0a5ff359ce35914bfe6409f91308 Mon Sep 17 00:00:00 2001 From: Edoardo Vacchi Date: Tue, 29 Apr 2014 16:49:58 +0200 Subject: [PATCH 03/18] fix strict error in function.list_categories.php --- .../plugins/function.list_categories.php | 71 +------------------ 1 file changed, 3 insertions(+), 68 deletions(-) diff --git a/fp-includes/smarty/plugins/function.list_categories.php b/fp-includes/smarty/plugins/function.list_categories.php index 5e94fc3..cf0753d 100755 --- a/fp-includes/smarty/plugins/function.list_categories.php +++ b/fp-includes/smarty/plugins/function.list_categories.php @@ -30,7 +30,9 @@ function smarty_function_list_categories($params) //, &$smarty) if (file_exists(CONTENT_DIR . 'categories.txt')) { $cats = trim(io_load_file(CONTENT_DIR . 'categories.txt')); - return '
    '.do_print_categories_list(explode("\n", $cats), $stack=array(0), $arr=array(), $cat_params).'
'; + $stack=array(0); + $arr=array(); + return '
    '.do_print_categories_list(explode("\n", $cats), $stack, $arr, $cat_params).'
'; } else { global $lang; @@ -152,70 +154,3 @@ function do_print_categories_list(&$lines, &$indentstack, &$result, $params) { return implode($result); } - -/* -function print_list_categories(&$lines, &$indentstack, $result, $params) { - - global $fpdb; - - - if (empty($lines)) - return ''; - - $str = ''; - $v = reset($lines); - $vt = ltrim($v); - - $indent = strlen($v) - strlen($vt); - $indent_old = end($indentstack); - - extract($params); - - if ($indent > $indent_old) { - array_push($indentstack, $indent); - array_pop($result); - array_push($result, $old); - array_push($result, $ild); - array_push($result, $vt); - print_list_categories($lines, $indentstack, $result, $params); - }elseif($indent < $indent_old) { - array_pop($indentstack); - array_push($result, $ord); - print_list_categories($lines, $indentstack, $result, $params); - }else{ - - - array_push($result, $ild); - - /*if (isset($after)) { - eval('$the_after = "'.$after.'";'); - } else { - $the_after = "