Everytime i am getting this error message then i have to change phpfn.php manually everytime. is there any method i can do this otherwise.
src\phpfn.php(1600): parse_str() expects exactly 2 arguments, 1 given
Correction:
function IsImageFile($fn) {
if ($fn != "") {
$ar = parse_url($fn);
if ($ar && array_key_exists("query", $ar)) { // Thumbnail URL
$q = [];
parse_str($ar["query"], $q); // Corrected: Stores parsed values in $q
if (isset($q["fn"])) {
$fn = $q["fn"];
}
}
$pathinfo = pathinfo($fn);
$ext = strtolower($pathinfo["extension"] ?? "");
return in_array($ext, explode(",", Config("IMAGE_ALLOWED_FILE_EXT")));
}
return false;
}