]> git.wh0rd.org Git - tt-rss.git/commitdiff
include hashed SELF_URL_PATH when checking for new version
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 16 Mar 2013 11:10:29 +0000 (15:10 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 16 Mar 2013 11:10:29 +0000 (15:10 +0400)
include/functions.php

index 3927a5b696f5c6b87931c5cca6bb93f7a06f4909..4e16c9f19d380e149ec36c47527217b9eaa2ed8a 100644 (file)
 
        function check_for_update($link) {
                if (CHECK_FOR_NEW_VERSION && $_SESSION['access_level'] >= 10) {
-                       $version_url = "http://tt-rss.org/version.php?ver=" . VERSION;
+                       $version_url = "http://tt-rss.org/version.php?ver=" . VERSION .
+                               "&iid=" . sha1(SELF_URL_PATH);
 
                        $version_data = @fetch_file_contents($version_url);