PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_Upload » Bug #760

error msg should not have html chars

Details

Submitted2004-02-15 19:35 UTC
Frommaka3d at yahoo dot com dot br
Assignedantonio
StatusClosed
PackageHTTP_Upload
PHP VersionIrrelevant
OSirrelevant
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