1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 12:25:56 +00:00

backend/rss: always use secret key to get uid when it is available instead of defaulting to session information; fix published url syntax being incorrect (closes #287)

This commit is contained in:
Andrew Dolgov
2010-12-27 16:47:33 +03:00
parent 32a5e3444d
commit 476edbbb5f
2 changed files with 2 additions and 2 deletions

View File

@@ -474,7 +474,7 @@
authenticate_user($link, "admin", null);
}
if ($key && !$_SESSION["uid"]) {
if ($key) {
$result = db_query($link, "SELECT owner_uid FROM
ttrss_access_keys WHERE access_key = '$key' AND feed_id = '$feed'");