Skip to content

Commit

Permalink
autoupdate - use nativ API function
Browse files Browse the repository at this point in the history
  • Loading branch information
ophian committed Jul 29, 2013
1 parent c5cc5f7 commit 336309f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions serendipity_event_autoupdate/ChangeLog
@@ -1,3 +1,6 @@
0.8
* Use native API method serendipity_db_escape_string()

0.7
* Added on error RELOAD note

Expand Down
4 changes: 2 additions & 2 deletions serendipity_event_autoupdate/serendipity_event_autoupdate.php
Expand Up @@ -22,7 +22,7 @@ function introspect(&$propbag) {
$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'
Expand Down Expand Up @@ -584,7 +584,7 @@ function doUpdate() {
$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()) {
Expand Down

0 comments on commit 336309f

Please sign in to comment.