add snyk ignore for eTag

This commit is contained in:
2023-02-21 14:39:57 +10:00
parent 1b68387865
commit fad2f82b6b

View File

@@ -218,6 +218,7 @@ class MediaController extends ApiController
$headerExpires = $updated_at->addMonth()->toRfc2822String();
}//end if
// deepcode ignore InsecureHash: Browsers expect Etag to be a md5 hash
$headerEtag = md5($updated_at->format('U'));
$headerLastModified = $updated_at->toRfc2822String();