Ticket #587: add_attribut.diff
| File add_attribut.diff, 1.2 kB (added by Lipki, 8 months ago) |
|---|
-
function.image.php
old new 67 67 // Name of the file cache 68 68 $chaine = $src; 69 69 foreach($params as $key => $value) 70 if( !in_array($key, array('alt', 'class', 'id', 'style' )))70 if( !in_array($key, array('alt', 'class', 'id', 'style', 'longdesc', 'name', 'ismap', 'usemap', 'title', 'dir', 'lang', 'onclick', 'ondblclick', 'onmousedown', 'onmouseup', 'onmouseover', 'onmousemove', 'onmouseout', 'onkeypress', 'onkeydown', 'onkeyup'))) 71 71 $chaine .= $key.$value; 72 72 $cachename = md5($chaine).'.'.$ext; 73 73 … … 88 88 } 89 89 90 90 // Attributes 91 $att = array('alt'=>'', 'id'=>'', 'class'=>'' );91 $att = array('alt'=>'', 'id'=>'', 'class'=>'', 'style'=>'', 'longdesc'=>'', 'name'=>'', 'ismap'=>'', 'usemap'=>'', 'title'=>'', 'dir'=>'', 'lang'=>'', 'onclick'=>'', 'ondblclick'=>'', 'onmousedown'=>'', 'onmouseup'=>'', 'onmouseover'=>'', 'onmousemove'=>'', 'onmouseout'=>'', 'onkeypress'=>'', 'onkeydown'=>'', 'onkeyup'=>''); 92 92 $att = array_intersect_key($params, $att); 93 93 94 94 // If the image does not undergo transformation
