Revision 428
Added by Matthias almost 18 years ago
trunk/wb/admin/pages/settings2.php | ||
---|---|---|
55 | 55 |
$menu = $admin->get_post('menu'); |
56 | 56 |
|
57 | 57 |
// Validate data |
58 |
if($page_title == '') { |
|
58 |
if($page_title == '' || substr($menu_title,0,1)=='.') {
|
|
59 | 59 |
$admin->print_error($MESSAGE['PAGES']['BLANK_PAGE_TITLE']); |
60 | 60 |
} |
61 |
if($menu_title == '') { |
|
61 |
if($menu_title == '' || substr($menu_title,0,1)=='.') {
|
|
62 | 62 |
$admin->print_error($MESSAGE['PAGES']['BLANK_MENU_TITLE']); |
63 | 63 |
} |
64 | 64 |
|
trunk/wb/admin/pages/add.php | ||
---|---|---|
47 | 47 |
} |
48 | 48 |
|
49 | 49 |
// Validate data |
50 |
if($title == '') { |
|
50 |
if($title == '' || substr($title,0,1)=='.') {
|
|
51 | 51 |
$admin->print_error($MESSAGE['PAGES']['BLANK_PAGE_TITLE']); |
52 | 52 |
} |
53 | 53 |
|
trunk/wb/framework/functions.php | ||
---|---|---|
667 | 667 |
$directory = WB_PATH.PAGES_DIRECTORY.$link; |
668 | 668 |
$filename = $directory.'.php'; |
669 | 669 |
$directory .= '/'; |
670 |
if(file_exists($filename)) { |
|
670 |
if(file_exists($filename) && substr($file_name,0,1<>'.')) {
|
|
671 | 671 |
if(!is_writable(WB_PATH.PAGES_DIRECTORY.'/')) { |
672 | 672 |
$admin->print_error($MESSAGE['PAGES']['CANNOT_DELETE_ACCESS_FILE']); |
673 | 673 |
} else { |
Also available in: Unified diff
Fixed ticket #380 (Thanks to pcwacht)