Home » HTTP » HTTP_Upload » Bug #760
error msg should not have html chars
Details
| Submitted | 2004-02-15 19:35 UTC |
|---|---|
| From | maka3d at yahoo dot com dot br |
| Assigned | antonio |
| Status | Closed |
| Package | HTTP_Upload |
| PHP Version | Irrelevant |
| OS | irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2004-02-15 19:35 UTC] maka3d at yahoo dot com dot br
Description:
------------
Error codes have html special chars inside. The package should not target only HTML. A variavel option may be added to choose between get the message with or without those codes.
at line 202 of function errorCode the code
$msg = $this->error_codes[$e_code][$this->lang];
should be
$msg = $this->decodeHtmlEntities ? html_entity_decode($this->error_codes[$e_code][$this->lang]) : $this->error_codes[$e_code][$this->lang];
where $this->decodeHtmlEntities is a propertie with false as default to BC.
[2004-02-17 00:23 UTC] pear-dev at mocsnik dot hu
sounds very reasonable.
http://cvs.php.net/cvs.php/pear/HTTP_Upload/Upload.php