Revision 1494
Added by Dietmar about 13 years ago
settings2.php | ||
---|---|---|
62 | 62 |
$parent = intval($admin->get_post('parent')); // fix secunia 2010-91-3 |
63 | 63 |
$visibility = $admin->get_post_escaped('visibility'); |
64 | 64 |
if (!in_array($visibility, array('public', 'private', 'registered', 'hidden', 'none'))) {$visibility = 'public';} // fix secunia 2010-93-3 |
65 |
$template = preg_replace("/\W/", "", $admin->get_post('template')); // fix secunia 2010-93-3 |
|
65 |
$template = preg_replace('/[^a-z0-9_-]/i', "", $admin->get_post('template')); // fix secunia 2010-93-3 |
|
66 |
$template = (($template == DEFAULT_TEMPLATE ) ? '' : $template); |
|
66 | 67 |
$target = preg_replace("/\W/", "", $admin->get_post('target')); |
67 | 68 |
$admin_groups = $admin->get_post_escaped('admin_groups'); |
68 | 69 |
$viewing_groups = $admin->get_post_escaped('viewing_groups'); |
Also available in: Unified diff
Fixed save wrong template directory in database