Core update (version check)

This commit is contained in:
markseu 2015-10-12 18:00:26 +02:00
parent 98faa872b2
commit 753999591e

View file

@ -518,12 +518,9 @@ class YellowCommandline
// Return plugin version URL from repository
function getPluginVersionUrl($url)
{
if(!$this->yellow->lookup->isFileLocation($url))
if(preg_match("#^https://github.com/(.+)$#", $url, $matches))
{
if(preg_match("#^https://github.com/(.+)$#", $url, $matches))
{
$url = "https://raw.githubusercontent.com/".$matches[1]."/master/version.ini";
}
$url = "https://raw.githubusercontent.com/".$matches[1]."/master/version.ini";
}
return $url;
}