subscribe_to_feed: force-cast login and password to string

This commit is contained in:
Andrew Dolgov 2018-01-05 06:50:37 +03:00
parent 4178dc85ab
commit c30f5e1811
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ?");