[Mapserver-users] no variable substitution with special characters?

Frieso ter Haseborg ter-haseborg at sf-datentechnik.de
Tue Nov 4 03:46:53 PST 2003


Hi,

can anybody confirm this problem? Before filing this as a bug, I would
like to isolate it. I'm not sure if this is a true Mapserver-problem or
rather a wrong configuration on the webserver.

A call like
http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/kmvims/test.map&version=1
.1.0&request=getMap&uid=%7F
works, but a call like
http://my.ip/cgi-bin/mapserv.exe?map=../htdocs/kmvims/test.map&version=1
.1.0&request=getMap&uid=%80
failes. The only difference is the given value for uid. 

On a normal php-call I experience no problems when using
special-characters witch ascii-values beyond 127. But when using values
beyond ascii127 in mapserver-calls, MS refuses to execute the php.

TIA,
Frieso

>Hi,
>
>isn't it possible to use special characters with the variable 
>substitution feature in mapfiles.
>
>I've the following situtation:
>
>In my mapfile I call a php for creating a dynamic layer:
>
>LAYER
>   NAME "wms"
>   TEMPLATE test.html
>   STATUS ON
>   TYPE POLYGON
>   CONNECTION "http://my.ip/kmvims/kmvims.php?uid=%uid%&pwd=%pwd%
>   CONNECTIONTYPE WMS
>   [...]
>
>For authorization purposes I use uid and pwd parameters. 
>Everything works fine unless I pass a pwd consisting of 
>special characters, i.e. characters with a ASCII value above 
>ASCII 127 (HEX 7F). When pwd contains one or more characters 
>in the ASCII-range above 127 the layer isn't called at all.
>
>URL-encoding doesn't solve the problem. I need characters 
>beyond ASCII 127 since the passwords passed are encrypted and 
>I've no influence on the encryption. It's just a passthrough 
>given from a client-server-application, all I want to do is 
>retrieve the passwords and check them against the database.
>
>Any ideas about this? Is it a bug or an intended limitation?
>
>TIA,
> 
>Frieso ter Haseborg
>- Software Development - 
> 
>--
>
>-------------------------------------------------- 
>S&F Datentechnik GmbH&Co.KG 
>Reimersstr. 41b 
>26789 Leer, Germany
>




More information about the MapServer-users mailing list