appimage should use the image sUrl instead of the iId when trying to stat() the file. We can't always be sure
that the iId will be the name of the file
This commit is contained in:
@@ -73,12 +73,13 @@ if ($aClean['sREQUEST_METHOD']='HEAD')
|
|||||||
header("Expires: ");
|
header("Expires: ");
|
||||||
header("Last-Modified: ".fHttpDate($iModTime));
|
header("Last-Modified: ".fHttpDate($iModTime));
|
||||||
}
|
}
|
||||||
|
|
||||||
$oScreenshot = new Screenshot($aClean['iId']);
|
$oScreenshot = new Screenshot($aClean['iId']);
|
||||||
|
|
||||||
/* at this point, we know that .../screenshots/$id and
|
/* at this point, we know that .../screenshots/$oScreenshot->sUrl and
|
||||||
* .../screenshots/thumbnails/$id both exist as normally
|
* .../screenshots/thumbnails/$oScreenshot->sUrl both exist as normally
|
||||||
* they would both be created at the same time. */
|
* they would both be created at the same time. */
|
||||||
$fstat_val = stat(appdb_fullpath("data/screenshots/".$aClean['iId']));
|
$fstat_val = stat(appdb_fullpath("data/screenshots/".$oScreenshot->sUrl));
|
||||||
$iModTime = $fstat_val['mtime'];
|
$iModTime = $fstat_val['mtime'];
|
||||||
|
|
||||||
header("Cache-Control: public");
|
header("Cache-Control: public");
|
||||||
|
|||||||
Reference in New Issue
Block a user