Remove query string from meta image path before checking

This commit is contained in:
Kijin Sung 2021-03-05 14:29:40 +09:00
parent a93a6097a7
commit c6833ba880

View file

@ -2698,7 +2698,7 @@ class Context
*/
public static function addMetaImage($filename, $width = 0, $height = 0)
{
$filename = preg_replace('/^[.\\\\\\/]+/', '', $filename);
$filename = preg_replace(['/^[.\\\\\\/]+/', '/\\?[0-9]+$/'], ['', ''], $filename);
if (!file_exists(\RX_BASEDIR . $filename))
{
return;