XML plist parser chokes on some values
Reported by Tomas Franzén | September 30th, 2008 @ 01:15 PM | in 0.6
The XML property list parser chokes on some values, for example strings ending with a percent character. This is because string values are run through decodeURIComponent (Objective-J.js, line #654), and they should not be.
Example:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<key>foo</key>
<string>100%</string>
Comments and changes to this ticket
-
Francisco Tolmasky November 15th, 2008 @ 12:57 AM
- Assigned user set to Francisco Tolmasky
- Milestone set to 0.6
OK, fixed, at the expense of possibly breaking old plists.
-
admin (at 280north) November 15th, 2008 @ 12:58 AM
- State changed from new to resolved
(from [cb7c8046e41a19cf8bda5116119994e7e0ad0081]) Fix for plist URL encoding instead of HTML entity encoding.
[#81 state:resolved]
Reviewed by me. http://github.com/280north/cappu...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.