forked from lolcat/4get
1
0
Fork 0

ok its unfucked now

This commit is contained in:
lolcat 2025-04-17 20:06:42 -04:00
parent 077692db49
commit 566680fe36
1 changed files with 7 additions and 9 deletions

View File

@ -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)){