On Mon, Nov 10, 2008 at 9:47 PM, Matthew Toseland
<toad at amphibian.dyndns.org> wrote:
> 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("<", "&lt;");
>> >> -             xmlStr = xmlStr.replaceAll(">", "&gt;");
>> >> +             xmlStr = xmlStr.replaceAll("<", "&lt;");
>> >> +             xmlStr = xmlStr.replaceAll(">", "&gt;");
>> >>               // Thanks for Theo Beisch (11/09/04)
>> >> -             xmlStr = xmlStr.replaceAll("&", "&amp;");
>> >> -             xmlStr = xmlStr.replaceAll("\"", "&quot;");
>> >> +             xmlStr = xmlStr.replaceAll("&", "&amp;");
>> >
>> > I know this is in a library ... but isn't the & -> &amp; substitution here
>> > going to cause problems by making < into &amp;lt; ?? Could this explain
> some
>> > of the problems we've had with UPnP even? Is there any corresponding code
>> > that assumes that there are &amp;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?

I have just checked,
this function is not used in the upnp library.


>>
>> >
>> >> +             xmlStr = xmlStr.replaceAll("\"", "&quot;");
>> >>               // Thanks for Brian Owens (12/02/04)
>> >> -             xmlStr = xmlStr.replaceAll("'", "&apos;");
>> >> +             xmlStr = xmlStr.replaceAll("'", "&apos;");
>> >>               return xmlStr;
>> >>       }
>
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
>

Reply via email to