autoupdate - use nativ API function

This commit is contained in:
Ian 2013-07-29 12:02:34 +02:00
parent c5cc5f7158
commit 336309fcde
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,6 @@
0.8
* Use native API method serendipity_db_escape_string()
0.7
* Added on error RELOAD note

View file

@ -22,7 +22,7 @@ class serendipity_event_autoupdate extends serendipity_event {
$propbag->add('description', PLUGIN_EVENT_AUTOUPDATE_DESC);
$propbag->add('stackable', false);
$propbag->add('author', 'onli, Ian');
$propbag->add('version', '0.7');
$propbag->add('version', '0.8');
$propbag->add('requirements', array(
'serendipity' => '0.8',
'php' => '5.1'
@ -584,7 +584,7 @@ EOS;
$this->close_page();
// this is working for me.... is it for you?
if(die("<script type='text/javascript'>alert('".mysql_real_escape_string($msg)."'); window.location = '".$serendipity['serendipityHTTPPath']."';</script>\n")) {
if(die("<script type='text/javascript'>alert('".serendipity_db_escape_string($msg)."'); window.location = '".$serendipity['serendipityHTTPPath']."';</script>\n")) {
return;
} else {
if(!headers_sent()) {