소스 검색

fixed private repo for plugins

CauseFX 4 년 전
부모
커밋
3beb0ea015
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 	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(
 			$context = stream_context_create(
 				array(
 				array(
 					'ssl' => array(
 					'ssl' => array(