diff --git a/serendipity_event_imageselectorplus/ChangeLog b/serendipity_event_imageselectorplus/ChangeLog index a0f7a3b4..830753e7 100644 --- a/serendipity_event_imageselectorplus/ChangeLog +++ b/serendipity_event_imageselectorplus/ChangeLog @@ -1,3 +1,8 @@ +0.43: +----- + * disable htmlspecialchars with wysiwyg textarea form + + 0.42: ----- diff --git a/serendipity_event_imageselectorplus/serendipity_event_imageselectorplus.php b/serendipity_event_imageselectorplus/serendipity_event_imageselectorplus.php index fd6f6c85..103460c4 100644 --- a/serendipity_event_imageselectorplus/serendipity_event_imageselectorplus.php +++ b/serendipity_event_imageselectorplus/serendipity_event_imageselectorplus.php @@ -26,7 +26,7 @@ class serendipity_event_imageselectorplus extends serendipity_event $propbag->add('description', PLUGIN_EVENT_IMAGESELECTORPLUS_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Garvin Hicking, Vladimir Ajgl, Adam Charnock, Ian'); - $propbag->add('version', '0.42'); + $propbag->add('version', '0.43'); $propbag->add('requirements', array( 'serendipity' => '1.3', 'smarty' => '2.6.7', @@ -525,7 +525,7 @@ class serendipity_event_imageselectorplus extends serendipity_event $serendipity['thumbSuffix'] = $oldSuffix; } - //Non-image object link generation + // Non-image object link generation if ($serendipity['POST']['quickblog']['isobject'] == YES) { $objfile = serendipity_parseFileName($file); $filename = $objfile[0]; @@ -543,14 +543,14 @@ class serendipity_event_imageselectorplus extends serendipity_event } } - //New draft post + // New draft post $entry = array(); $entry['isdraft'] = 'false'; $entry['title'] = htmlspecialchars($serendipity['POST']['quickblog']['title']); if (isset($objpath) && !empty($objpath)) { - $entry['body'] = '' . $filename . ' (-'.$obj_mime.'-)

' . htmlspecialchars($serendipity['POST']['quickblog']['body']) . '

'; + $entry['body'] = '' . $filename . ' (-'.$obj_mime.'-)

' . ($serendipity['wysiwyg'] ? $serendipity['POST']['quickblog']['body'] : htmlspecialchars($serendipity['POST']['quickblog']['body']) . '

'; } else { - $entry['body'] = '' . htmlspecialchars($serendipity['POST']['quickblog']['body']); + $entry['body'] = '' . ($serendipity['wysiwyg'] ? $serendipity['POST']['quickblog']['body'] : htmlspecialchars($serendipity['POST']['quickblog']['body'])); } $entry['authorid'] = $serendipity['authorid']; $entry['exflag'] = false;