]> git.wh0rd.org Git - tt-rss.git/commitdiff
subscribe_to_feed: force-cast login and password to string
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 5 Jan 2018 03:50:37 +0000 (06:50 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 5 Jan 2018 03:50:37 +0000 (06:50 +0300)
classes/feeds.php

index 5814f06b11a80bb3e06ed08004c84e601e5d5c5a..015418328729ccb3cc7849be80c99f399533e338 100755 (executable)
@@ -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 = ?");