From 73a6fa179cd3cc3f5ffe039e017481fe4bbc8a76 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Wed, 16 Apr 2008 11:41:29 +0000 Subject: [PATCH] Tokenize template configuration --- include/admin/templates.inc.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/admin/templates.inc.php b/include/admin/templates.inc.php index f30b8d0..b0a43ec 100644 --- a/include/admin/templates.inc.php +++ b/include/admin/templates.inc.php @@ -69,7 +69,7 @@ if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . if (is_array($template_config)) { serendipity_plugin_api::hook_event('backend_templates_configuration_top', $template_config); - if ($serendipity['POST']['adminAction'] == 'configure') { + if ($serendipity['POST']['adminAction'] == 'configure' && serendipity_checkFormToken()) { foreach($serendipity['POST']['template'] AS $option => $value) { template_option::set_config($option, $value); } @@ -79,6 +79,7 @@ if (is_array($template_config)) { echo '
'; echo ''; echo ''; + echo serendipity_setFormToken(); include S9Y_INCLUDE_PATH . 'include/functions_plugins_admin.inc.php'; $template_vars =& serendipity_loadThemeOptions($template_config); @@ -196,7 +197,3 @@ echo '

' . SELECT_TEMPLATE . '

'; - -- 2.39.5