]> git.mxchange.org Git - friendica.git/commitdiff
dont use the entire url as option
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 6 Nov 2017 17:05:42 +0000 (18:05 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Mon, 6 Nov 2017 17:05:42 +0000 (18:05 +0100)
include/checkversion.php
mod/admin.php

index 6cd34b2ce9171aed09d080413fff74b5b4936dfb..0567a595407bd33b9e193b9cbda42ca2f7c039b0 100644 (file)
@@ -25,7 +25,7 @@ function checkversion_run () {
        if ($checkurl == 'none' ) {
                return;
        }
-       $gitversion = dbesc(trim(fetch_url($checkurl)));
+       $gitversion = dbesc(trim(fetch_url("https://raw.githubusercontent.com/friendica/friendica/".$checkurl."/VERSION")));
        Config::set('system', 'git_friendica_version', $gitversion);
 
        logger('checkversion: end');
index dba180c1294d372cf60252fe59e138ee91b43ac0..303747c8194ce1dce4b692d8e8bf4ef62aec0a59 100644 (file)
@@ -1149,8 +1149,8 @@ function admin_page_site(App $a) {
 
        $check_git_version_choices = array(
                "none" => t("Don't check"),
-               "https://raw.githubusercontent.com/friendica/friendica/master/VERSION" => t("check the stable version"),
-               "https://raw.githubusercontent.com/friendica/friendica/develop/VERSION" => t("check the development version")
+               "master" => t("check the stable version"),
+               "develop" => t("check the development version")
        );
 
        if ($a->config['hostname'] == "") {