diff options
author | Andrew Dolgov <[email protected]> | 2018-01-05 06:50:37 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-01-05 06:50:37 +0300 |
commit | c30f5e18119d1935e8fe6d422053b127e8f4f1b3 (patch) | |
tree | 9e7236671a81a3b9f83c206a4665749fa16bc357 /classes/feeds.php | |
parent | 4178dc85ab7f78d40cc8dabf12713fab8333a22b (diff) |
subscribe_to_feed: force-cast login and password to string
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-x | classes/feeds.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index 5814f06b1..015418328 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -1504,7 +1504,7 @@ class Feeds extends Handler_Protected { (owner_uid,feed_url,title,cat_id, auth_login,auth_pass,update_method,auth_pass_encrypted) VALUES (?, ?, ?, ?, ?, ?, 0, false)"); - $sth->execute([$_SESSION['uid'], $url, "[Unknown]", $cat_id, $auth_login, $auth_pass]); + $sth->execute([$_SESSION['uid'], $url, "[Unknown]", $cat_id, (string)$auth_login, (string)$auth_pass]); $sth = $pdo->prepare("SELECT id FROM ttrss_feeds WHERE feed_url = ? AND owner_uid = ?"); |