Project

General

Profile

« Previous | Next » 

Revision 1583

Added by Dietmar almost 13 years ago

forgot upload save.php in wysiwyg module

View differences:

branches/2.8.x/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
=========================== add small Features 2.8.2 ==========================
14
19 Jan-2012 Build 1583 Dietmar Woellbrink (Luisehahne)
15
! forgot upload save.php in wysiwyg module
14 16
19 Jan-2012 Build 1582 Dietmar Woellbrink (Luisehahne)
15 17
# wysiwyg module, fix issues with magic_quote_gpc if on
16 18
# form module, fix regex for radio and checkbox (Tks to Ruud)
branches/2.8.x/wb/admin/interface/version.php
52 52

  
53 53
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
54 54
if(!defined('VERSION')) define('VERSION', '2.8.2');
55
if(!defined('REVISION')) define('REVISION', '1582');
55
if(!defined('REVISION')) define('REVISION', '1583');
56 56
if(!defined('SP')) define('SP', 'SP2');
branches/2.8.x/wb/modules/wysiwyg/save.php
38 38
// Update the mod_wysiwygs table with the contents
39 39
if(isset($_POST['content'.$section_id])) {
40 40
    $content = $_POST['content'.$section_id];
41
	if(version_compare(PHP_VERSION, '5.3.0', '<'))
42
	{
43
		if(get_magic_quotes_gpc()) {
44
			$content = $admin->strip_slashes($_POST['content'.$section_id]);
45
		}
46
	}
41 47
	$searchfor = '@(<[^>]*=\s*")('.preg_quote($sMediaUrl).')([^">]*".*>)@siU';
42 48
    $content = preg_replace($searchfor, '$1{SYSVAR:MEDIA_REL}$3', $content);
43 49
	// searching in $text will be much easier this way

Also available in: Unified diff