contactform - reset encoded quotes for text and subject
This commit is contained in:
parent
ed11b82f48
commit
c3a2344506
|
@ -1,3 +1,7 @@
|
|||
1.19:
|
||||
-----
|
||||
* reset encoded quotes for text and subject
|
||||
|
||||
1.18:
|
||||
-----
|
||||
* Use native API method parseTemplate() for the tpl files
|
||||
|
@ -41,4 +45,4 @@
|
|||
1.10:
|
||||
-----
|
||||
|
||||
* Introdcuce new "issue counter".
|
||||
* Introduce new "issue counter".
|
|
@ -29,7 +29,7 @@ class serendipity_event_contactform extends serendipity_event {
|
|||
$propbag->add('event_hooks', array('entries_header' => true, 'entry_display' => true, 'genpage' => true));
|
||||
$propbag->add('configuration', array('permalink', 'pagetitle', 'backend_title', 'email', 'subject', 'counter', 'intro', 'sent', 'articleformat', 'dynamic_tpl', 'dynamic_fields', 'dynamic_fields_tpl', 'dynamic_fields_desc'));
|
||||
$propbag->add('author', 'Garvin Hicking');
|
||||
$propbag->add('version', '1.18');
|
||||
$propbag->add('version', '1.19');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '1.3',
|
||||
'smarty' => '2.6.7',
|
||||
|
@ -188,6 +188,10 @@ class serendipity_event_contactform extends serendipity_event {
|
|||
. "\n"
|
||||
. "\n" . '----';
|
||||
|
||||
// reset encoded quotes for text and subject
|
||||
$subject = str_replace('"', '"', $subject);
|
||||
$text = str_replace('"', '"', $text);
|
||||
|
||||
return serendipity_sendMail($to, $subject, $text, $fromEmail, null, $fromName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue