fixes #87, possible XSS in config panel

This commit is contained in:
azett 2023-01-08 13:11:22 +01:00
parent 264217f318
commit 0ee4f2e8a7

View File

@ -124,14 +124,14 @@ class admin_config_default extends AdminPanelActionValidated {
'title' => wp_specialchars(stripslashes($_POST ['title'])),
'subtitle' => wp_specialchars(stripslashes($_POST ['subtitle'])),
'footer' => wp_specialchars(stripslashes($_POST ['blogfooter'])),
'author' => $_POST ['author'],
'email' => $_POST ['email'],
'author' => wp_specialchars($_POST ['author']),
'email' => wp_specialchars($_POST ['email']),
'startpage' => ($_POST ['startpage'] == ':NULL:') ? null : $_POST ['startpage'],
'maxentries' => $_POST ['maxentries'],
// 'voting' => $_POST['voting'],
'notify' => isset($_POST ['notify']),
/* preserve the following */
'theme' => $fp_config ['general'] ['theme'],
// preserve the following
'theme' => $fp_config ['general'] ['theme'],
'style' => @$fp_config ['general'] ['style'],
'blogid' => $fp_config ['general'] ['blogid'],
'charset' => 'utf-8'