Bug in Http.js of Helma?
Anton Pirker <[email protected]> Mon, 21 Apr 2008 21:25:17 +0200
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------090903020204040305050404 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Hello! A friend of mine (a brand new Helma developer!) just tried to read an RSS-Feed with Helma and discovered that if there is a ; in the charset-string an error is thrown. We found the problem in Http.js in modules/helma. The Charset-String is parsed from the result of the helma.Http() result. I have attached a little fix. Could someone of the commiters please check this and maybe commit it? Cheers, Anton -- DI(FH) Anton Pirker, Helma Freelancer --------------090903020204040305050404 Content-Type: text/plain; name="Http.js.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="Http.js.patch" SW5kZXg6IEh0dHAuanMNCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCi0tLSBIdHRwLmpzCShyZXZpc2lvbiA4 Nzk1KQ0KKysrIEh0dHAuanMJKHdvcmtpbmcgY29weSkNCkBAIC01NzcsNyArNTc3LDcgQEAN CiAKICAgICAgICAgaWYgKHJlc3VsdC50eXBlICYmIHJlc3VsdC50eXBlLmluZGV4T2YoImNo YXJzZXQ9IikgIT0gLTEpIHsKICAgICAgICAgICAgdmFyIGNoYXJzZXQgPSByZXN1bHQudHlw ZS5zdWJzdHJpbmcocmVzdWx0LnR5cGUuaW5kZXhPZigiY2hhcnNldD0iKSArIDgpOwotICAg ICAgICAgICBjaGFyc2V0ID0gY2hhcnNldC5yZXBsYWNlKCciJywgJyAnKS50cmltKCk7Cisg ICAgICAgICAgIGNoYXJzZXQgPSBjaGFyc2V0LnJlcGxhY2UoL1s7Il0vZywgJycpOwogICAg ICAgICAgICByZXN1bHQuY2hhcnNldCA9IGNoYXJzZXQ7CiAgICAgICAgIH0KIAo= --------------090903020204040305050404 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Helma-user mailing list [email protected] http://helma.org/mailman/listinfo/helma-user --------------090903020204040305050404--