Move download link replacements
This commit is contained in:
		
							
								
								
									
										2
									
								
								get.php
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								get.php
									
									
									
									
									
								
							| @@ -329,7 +329,7 @@ function uupGetFiles( | ||||
|     $filesNew = array(); | ||||
|     foreach($filesInfoKeys as $val) { | ||||
|        $filesNew[$val] = $filesInfoList[$val]; | ||||
|        $filesNew[$val]['url'] = str_replace('http://tlu.dl.delivery.mp.microsoft.com', 'https://uupdump.sf.tlu.dl.delivery.mp.microsoft.com', $filesInfoList[$val]['url']); | ||||
|        $filesNew[$val]['url'] = uupApiFixDownloadLink($filesInfoList[$val]['url']); | ||||
|     } | ||||
|  | ||||
|     $files = $filesNew; | ||||
|   | ||||
| @@ -155,3 +155,14 @@ function uupApiBuildMajor($build) { | ||||
|  | ||||
|     return intval(explode('.', $build)[0]); | ||||
| } | ||||
|  | ||||
| function uupApiFixDownloadLink($link) { | ||||
|     if($link == null) | ||||
|         return null; | ||||
|  | ||||
|     return str_replace( | ||||
|         'http://tlu.dl.delivery.mp.microsoft.com', | ||||
|         'https://uupdump.sf.tlu.dl.delivery.mp.microsoft.com', | ||||
|         $link | ||||
|     ); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user