autoupdate - use nativ API function
This commit is contained in:
parent
c5cc5f7158
commit
336309fcde
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
0.8
|
||||||
|
* Use native API method serendipity_db_escape_string()
|
||||||
|
|
||||||
0.7
|
0.7
|
||||||
* Added on error RELOAD note
|
* Added on error RELOAD note
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ class serendipity_event_autoupdate extends serendipity_event {
|
||||||
$propbag->add('description', PLUGIN_EVENT_AUTOUPDATE_DESC);
|
$propbag->add('description', PLUGIN_EVENT_AUTOUPDATE_DESC);
|
||||||
$propbag->add('stackable', false);
|
$propbag->add('stackable', false);
|
||||||
$propbag->add('author', 'onli, Ian');
|
$propbag->add('author', 'onli, Ian');
|
||||||
$propbag->add('version', '0.7');
|
$propbag->add('version', '0.8');
|
||||||
$propbag->add('requirements', array(
|
$propbag->add('requirements', array(
|
||||||
'serendipity' => '0.8',
|
'serendipity' => '0.8',
|
||||||
'php' => '5.1'
|
'php' => '5.1'
|
||||||
|
@ -584,7 +584,7 @@ EOS;
|
||||||
$this->close_page();
|
$this->close_page();
|
||||||
|
|
||||||
// this is working for me.... is it for you?
|
// 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;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if(!headers_sent()) {
|
if(!headers_sent()) {
|
||||||
|
|
Loading…
Reference in a new issue