On Sunday 09 November 2008 12:12, Daniel Cheng wrote:
> On Sat, Nov 8, 2008 at 9:52 PM, Matthew Toseland
> <toad at amphibian.dyndns.org> wrote:
> > On Friday 07 November 2008 15:59, j16sdiz at freenetproject.org wrote:
> >> Author: j16sdiz
> >> Date: 2008-11-07 15:59:09 +0000 (Fri, 07 Nov 2008)
> >> New Revision: 23377
> >>
> >> Modified:
> >> trunk/plugins/SNMP/snmplib/SNMPPortNumberCallback.java
> >> trunk/plugins/UPnP/org/cybergarage/xml/Node.java
> >> Log:
> >> Boolean.equal(), not ==
> >>
> > ...
> >> Modified: trunk/plugins/UPnP/org/cybergarage/xml/Node.java
> >> ===================================================================
> >> --- trunk/plugins/UPnP/org/cybergarage/xml/Node.java 2008-11-07 15:58:24
UTC
> > (rev 23376)
> >> +++ trunk/plugins/UPnP/org/cybergarage/xml/Node.java 2008-11-07 15:59:09
UTC
> > (rev 23377)
> >> @@ -385,13 +386,13 @@
> >> public String toXMLString(boolean hasChildNode)
> >> {
> >> String xmlStr = toString();
> >> - xmlStr = xmlStr.replaceAll("<", "<");
> >> - xmlStr = xmlStr.replaceAll(">", ">");
> >> + xmlStr = xmlStr.replaceAll("<", "<");
> >> + xmlStr = xmlStr.replaceAll(">", ">");
> >> // Thanks for Theo Beisch (11/09/04)
> >> - xmlStr = xmlStr.replaceAll("&", "&");
> >> - xmlStr = xmlStr.replaceAll("\"", """);
> >> + xmlStr = xmlStr.replaceAll("&", "&");
> >
> > I know this is in a library ... but isn't the & -> & substitution here
> > going to cause problems by making < into &lt; ?? Could this explain
some
> > of the problems we've had with UPnP even? Is there any corresponding code
> > that assumes that there are &lt;'s??
>
> hmmm... i didn't read / change this file.
> this is some whitespace change (generated by the ide) committed accidentally
Could it cause problems? Specifically, could it cause UPnP to not work on some
routers?
>
> >
> >> + xmlStr = xmlStr.replaceAll("\"", """);
> >> // Thanks for Brian Owens (12/02/04)
> >> - xmlStr = xmlStr.replaceAll("'", "'");
> >> + xmlStr = xmlStr.replaceAll("'", "'");
> >> return xmlStr;
> >> }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20081110/0b877a73/attachment.pgp>