akashbhikadiya3 / jaxl

Automatically exported from code.google.com/p/jaxl
GNU General Public License v3.0
0 stars 0 forks source link

JAXL crashes if try to echo ampersand(&) #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call $jaxl->sendMessage() with output message containing ampersand.
2. JAXL fails  and crashes.
3.

What is the expected output? What do you see instead?
It should echo ampersand.

What version of the product are you using? On what operating system?
Latest version , Ubuntu 10.04

Please provide any additional information below.

Original issue reported on code.google.com by a.aja...@gmail.com on 17 Oct 2010 at 3:00

GoogleCodeExporter commented 8 years ago
Thanks Ajay for raising the issue.
This is a known bug to me and I am working on it.

If you see commit's after 2.1.1. release, you will find an 
JAXLUtil::xmlentities() method added to the helper class. This will handle not 
only cases like "&" but also cases like "®" "µ" automatically.

Original comment by mailsfor...@gmail.com on 17 Oct 2010 at 3:49

GoogleCodeExporter commented 8 years ago
Hi Ajay,

The issue is fixed and pushed into Jaxl master:
http://github.com/abhinavsingh/JAXL/commit/92fc6e9b7d5cc1ffeff0b9e36478733de4982
755

Jaxl core now inherently supports:
1) Rserved characters in HTML
2) ISO 8859-1 Symbols
3) ISO 8859-1 Characters
4) Math Symbols Supported by HTML
5) Greek Letters Supported by HTML
6) Other Entities Supported by HTML

Kindly let me know if Jaxl core crashes ever again due to any special character 
or otherwise.

Original comment by mailsfor...@gmail.com on 19 Oct 2010 at 5:24

GoogleCodeExporter commented 8 years ago
Updated codebase with this branch.. it works great... thanks...

Original comment by a.aja...@gmail.com on 20 Oct 2010 at 6:06