mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-25 23:51:57 +00:00
db_escape_string: specify link parameter for consistency; sessions: do not force-close db connection in _close()
This commit is contained in:
@@ -20,7 +20,7 @@ class OwnCloud extends Plugin {
|
||||
}
|
||||
|
||||
function save() {
|
||||
$owncloud_url = db_escape_string($_POST["owncloud_url"]);
|
||||
$owncloud_url = db_escape_string($this->link, $_POST["owncloud_url"]);
|
||||
$this->host->set($this, "owncloud", $owncloud_url);
|
||||
echo "Value set to $owncloud_url";
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class OwnCloud extends Plugin {
|
||||
}
|
||||
|
||||
function getOwnCloud() {
|
||||
$id = db_escape_string($_REQUEST['id']);
|
||||
$id = db_escape_string($this->link, $_REQUEST['id']);
|
||||
|
||||
$result = db_query($this->link, "SELECT title, link
|
||||
FROM ttrss_entries, ttrss_user_entries
|
||||
|
||||
Reference in New Issue
Block a user