[Mapserver-dev] Re: [Mapserver-users] WMS Cllient for ArcView 3.X
Paul Ramsey
pramsey at refractions.net
Wed Oct 8 15:05:02 EDT 2003
I believe Shane here has already reported a variant of this. In general,
a simple fix is, before being stuffed into an XML message, all error
text should be scanned for <, >, and & and the corresponding &entity;
should be inserted.
Running
grep "<br>" *.c
on the code turns up a very large quantity of error messages with
embedded <br>'s in them, which will of course throw an XML parser for a
loop if stuck literally into an XML error message.
Shall I ask Shane to do this fix, or would it be better if you did it as
the OpenGIS experts? I do not want to accidentaly screw anything up.
The other question is: is it better to just entity'ize the stupid HTML
tags, or should we try and strip them, or try and replace them with
something "better" (like what, I dunno).
Paul
Daniel Morissette wrote:
>> 2. Report Mapfile errors as XML. We should be able to check if
>> "Request="
>> is a CGI parameter. Or use some other non-mapfile mechanism to
>> determine if
>> the protocol is OGC.
>>
>
> I filed bug 456 to at least handle the case above properly.
> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=456
--
__
/
| Paul Ramsey
| Refractions Research
| Email: pramsey at refractions.net
| Phone: (250) 885-0632
\_
More information about the mapserver-dev
mailing list