Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.0

Bug #5786 Error in producing SVG
Submitted: 2005-10-26 11:42 UTC
From: p dot kirov at gmail dot com Assigned: nosey
Status: Closed Package: Image_Canvas
PHP Version: 4.4.0 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-10-26 11:42 UTC] p dot kirov at gmail dot com
Description: ------------ When generate SVG xml there is error on producing "id" in <g > tag, when there is "&" in plot title I found /usr/share/php/Image/Canvas/SVG.php on line 749 original: $this->_addElement('<g id="' . $name . '">'); my fix: $this->_addElement('<g id="' . str_replace( '&', '__', $name ) . '">'); Maybe this is not the best solution but it is work for now.

Comments

 [2005-10-26 12:00 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-10-26 17:16 UTC] p dot kirov at gmail dot com
Thanks a lot for fast answer :). You are rigth htmlspecialchars() will be better solutiotion.
 [2005-10-27 21:20 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!