Revision 65
Added by stefan about 19 years ago
trunk/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.6.0 ------------------------------------- |
14 |
10-Sep-2005 Ryan Djurovich |
|
15 |
! Added protection against the use of DB_URL in Code module |
|
16 | 14 |
09-Sep-2005 Stefan Braunewell |
17 | 15 |
+ Added new advanced setting "Rename Files On Upload". File extensions can be |
18 | 16 |
given so that respective files will have a ".txt" appended on media upload. |
trunk/wb/modules/code/save.php | ||
---|---|---|
31 | 31 |
|
32 | 32 |
// Update the mod_wysiwygs table with the contents |
33 | 33 |
if(isset($_POST['content'])) { |
34 |
$tags = array('<?php', '?>', '<?'.'DB_URL');
|
|
34 |
$tags = array('<?php', '?>' , '<?');
|
|
35 | 35 |
$content = $admin->add_slashes(str_replace($tags, '', $_POST['content'])); |
36 | 36 |
$database = new database(); |
37 | 37 |
$query = "UPDATE ".TABLE_PREFIX."mod_code SET content = '$content' WHERE section_id = '$section_id'"; |
Also available in: Unified diff
Rolled back changeset 62,63.