forked from lolcat/4get
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){
|
if($id === null){
|
||||||
|
|
||||||
// fallback to getting ID from path
|
$id = explode("/th/id/", $image["path"], 2);
|
||||||
$id = explode("/", $image["path"]);
|
|
||||||
|
|
||||||
for($i=count($id) - 1; $i>0; $i--){
|
if(count($id) !== 2){
|
||||||
|
|
||||||
if(trim($id[$i]) != ""){
|
// malformed
|
||||||
|
return $url;
|
||||||
$id = $id[$i];
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$id = $id[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_array($id)){
|
if(is_array($id)){
|
||||||
|
|
Loading…
Reference in New Issue