Browse Source

fixed private repo for plugins

CauseFX 4 years ago
parent
commit
3beb0ea015
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/classes/organizr.class.php

+ 1 - 1
api/classes/organizr.class.php

@@ -5974,7 +5974,7 @@ class Organizr
 
 	public function downloadFileToPath($from, $to, $path)
 	{
-		if ((stripos($from, 'api.github.com') !== false) && $this->config['githubAccessToken'] !== '') {
+		if (((stripos($from, 'api.github.com') !== false) || (stripos($from, 'raw.githubusercontent.com') !== false)) && $this->config['githubAccessToken'] !== '') {
 			$context = stream_context_create(
 				array(
 					'ssl' => array(