summaryrefslogtreecommitdiff
path: root/plugins/import_export
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-22 09:14:55 +0400
committerAndrew Dolgov <[email protected]>2013-03-22 09:14:55 +0400
commit3972bf598195efba3e73ae1fef3faceabeb50308 (patch)
tree0e0d6e4570b9f9ba692ffae40b7d170e356c4ec7 /plugins/import_export
parent9d9432dab87e3887e4f482ac5afff1586530c692 (diff)
db_escape_string: specify link parameter for consistency; sessions: do not force-close db connection in _close()
Diffstat (limited to 'plugins/import_export')
-rw-r--r--plugins/import_export/init.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php
index de21dbf32..61b9a439f 100644
--- a/plugins/import_export/init.php
+++ b/plugins/import_export/init.php
@@ -49,7 +49,7 @@ class Import_Export extends Plugin implements IHandler {
}
function save() {
- $example_value = db_escape_string($_POST["example_value"]);
+ $example_value = db_escape_string($this->link, $_POST["example_value"]);
echo "Value set to $example_value (not really)";
}
@@ -122,7 +122,7 @@ class Import_Export extends Plugin implements IHandler {
}
function exportrun() {
- $offset = (int) db_escape_string($_REQUEST['offset']);
+ $offset = (int) db_escape_string($this->link, $_REQUEST['offset']);
$exported = 0;
$limit = 250;
@@ -238,7 +238,7 @@ class Import_Export extends Plugin implements IHandler {
foreach ($article_node->childNodes as $child) {
if ($child->nodeName != 'label_cache')
- $article[$child->nodeName] = db_escape_string($child->nodeValue);
+ $article[$child->nodeName] = db_escape_string($this->link, $child->nodeValue);
else
$article[$child->nodeName] = $child->nodeValue;
}
@@ -346,7 +346,7 @@ class Import_Export extends Plugin implements IHandler {
$score = (int) $article['score'];
$tag_cache = $article['tag_cache'];
- $label_cache = db_escape_string($article['label_cache']);
+ $label_cache = db_escape_string($this->link, $article['label_cache']);
$note = $article['note'];
//print "Importing " . $article['title'] . "<br/>";