Project

General

Profile

« Previous | Next » 

Revision 1494

Added by Dietmar over 13 years ago

Fixed save wrong template directory in database

View differences:

add.php
33 33
// Get values
34 34
$title = $admin->get_post_escaped('title');
35 35
$title = htmlspecialchars($title);
36
$module = preg_replace("/\W/", "", $admin->get_post('type')); // fix secunia 2010-93-4
36
$module = preg_replace('/[^a-z0-9_-]/i', "", $admin->get_post('type')); // fix secunia 2010-93-4
37 37
$parent = intval($admin->get_post('parent')); // fix secunia 2010-91-2
38 38
$visibility = $admin->get_post('visibility');
39 39
if (!in_array($visibility, array('public', 'private', 'registered', 'hidden', 'none'))) {$visibility = 'public';} // fix secunia 2010-91-2

Also available in: Unified diff