[SPIP] ~maj 3.0.10 --> 3.0.14
[lhc/web/www.git] / www / plugins-dist / filtres_images / apple-touch-icon.png.html
index 3d905c0..ed45141 100644 (file)
@@ -9,7 +9,7 @@ $file="[(#CHEMIN{apple-touch-icon[-(#ENV{size,''})].png}|sinon{[(#LOGO_SITE_SPIP
                |image_passe_partout{[(#ENV{size,57}|intval)],[(#ENV{size,57}|intval)]}
                |image_recadre{[(#ENV{size,57}|intval)],[(#ENV{size,57}|intval)],center}
                |image_aplatir{png,#ffffff}|extraire_attribut{src})]})]";
-if ($cl = filesize($file))
+if ($cl = filesize(preg_replace(',[?].*$,','',$file))
        header("Content-Length: ". $cl);
 
 readfile($file);