Project

General

Profile

« Previous | Next » 

Revision 1583

Added by Dietmar almost 13 years ago

forgot upload save.php in wysiwyg module

View differences:

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