[mapguide-users] problem with setresource

Jason Birch Jason.Birch at nanaimo.ca
Thu Apr 13 14:01:54 EDT 2006


Are you sure it isn't the magic_quotes_gpc setting in PHP?  I think you
can turn this off in your script with ini_set?

Jason 

-----Original Message-----
From: Paul Spencer [mailto:pspencer at dmsolutions.ca] 
Sent: Thursday, April 13, 2006 11:00
To: users at mapguide.osgeo.org
Subject: [mapguide-users] problem with setresource

I'm not sure what to do with this.  I am calling the MapAgent
SETRESOURCE operation through a proxy script (PHP).  The content of the
resource is passed as a string to the proxy script which then adds the
appropriate multipart form information to get MapGuide to accept the
resource content.  This works (once I figured out that it requires a
file name).  However, if the proxy script is on a machine with Apache
1.3, the XML content gets quotes in the xml escaped so you end up with
tags like

<tag attr=\"test\"/>

which causes MapGuide server to fail to load the content.

The same proxy running on Apache 2.0 works without problem (because it
doesn't escape the quotes).

Is this a problem with MapGuide server (i.e. should it be unescaping
quotes)?  Is this a bug in some Apache versions?  Should I not worry
about it and make it a requirement for my app to run under Apache 2.x?

Cheers

Paul

+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org






More information about the Mapguide-users mailing list