cvs: pear /Image_Canvas/Canvas SVG.php
| From: | Jesper Veggerby Hansen | Date: | Thu, 27 Oct 2005 20:29:24 +0000 |
| Subject: | cvs: pear /Image_Canvas/Canvas SVG.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35914@lists.php.net to get a copy of this message | ||
nosey Thu Oct 27 16:29:24 2005 EDT
Modified files:
/pear/Image_Canvas/Canvas SVG.php
Log:
Fixed Bug #5786 "Error in producing SVG"
http://cvs.php.net/diff.php/pear/Image_Canvas/Canvas/SVG.php?r1=1.6&r2=1.7&ty=u
Index: pear/Image_Canvas/Canvas/SVG.php
diff -u pear/Image_Canvas/Canvas/SVG.php:1.6 pear/Image_Canvas/Canvas/SVG.php:1.7
--- pear/Image_Canvas/Canvas/SVG.php:1.6 Wed Aug 24 16:37:35 2005
+++ pear/Image_Canvas/Canvas/SVG.php Thu Oct 27 16:29:21 2005
@@ -21,7 +21,7 @@
* @author Jesper Veggerby <pear.nosey@veggerby.dk>
* @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: SVG.php,v 1.6 2005/08/24 20:37:35 nosey Exp $
+ * @version CVS: $Id: SVG.php,v 1.7 2005/10/27 20:29:21 nosey Exp $
* @link http://pear.php.net/pepr/pepr-proposal-show.php?id=212
*/
@@ -733,7 +733,7 @@
$textOpacity :
''
) . ';' . $align . '">' .
- str_replace('&', '&', $text) .
+ htmlspecialchars($text) .
'</text>',
$params
);
@@ -792,7 +792,7 @@
$this->_id++;
}
$this->_groupIDs[] = $name;
- $this->_addElement('<g id="' . $name . '">');
+ $this->_addElement('<g id="' . htmlspecialchars($name) .
'">');
$this->_indent .= ' ';
}