ok its unfucked now
This commit is contained in:
		
							parent
							
								
									077692db49
								
							
						
					
					
						commit
						566680fe36
					
				
							
								
								
									
										14
									
								
								proxy.php
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								proxy.php
									
									
									
									
									
								
							| @ -60,17 +60,15 @@ try{ | ||||
| 		 | ||||
| 		if($id === null){ | ||||
| 			 | ||||
| 			// fallback to getting ID from path
 | ||||
| 			$id = explode("/", $image["path"]); | ||||
| 			$id = explode("/th/id/", $image["path"], 2); | ||||
| 			 | ||||
| 			for($i=count($id) - 1; $i>0; $i--){ | ||||
| 			if(count($id) !== 2){ | ||||
| 				 | ||||
| 				if(trim($id[$i]) != ""){ | ||||
| 					 | ||||
| 					$id = $id[$i]; | ||||
| 					break; | ||||
| 				} | ||||
| 				// malformed
 | ||||
| 				return $url; | ||||
| 			} | ||||
| 			 | ||||
| 			$id = $id[1]; | ||||
| 		} | ||||
| 		 | ||||
| 		if(is_array($id)){ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 lolcat
						lolcat