diff --git a/syntax.php b/syntax.php index bf9a137..e71e40c 100644 --- a/syntax.php +++ b/syntax.php @@ -119,6 +119,9 @@ function render($format, Doku_Renderer $R, $data) { * Return path to the rendered image on our local system */ function _imgfile($data){ + // filter out unwanted GET parametres + $data=array_intersect_key( $data, array( 'width' => 1, 'height' => 1, 'layout' => 1, 'align' => 1, 'version' => 1, 'md5' => 1 )); + $cache = $this->_cachename($data,'png'); // create the file if needed