shp2img failing on super-basic mapfile
Frank Warmerdam
warmerdam at POBOX.COM
Mon Oct 15 11:04:06 PDT 2007
Webb Sprague wrote:
> I am trying to generate an image from the following mapfile, but I
> keep getting the following:
>
> MAPSCRIPT[0]$ shp2img -m map2 > foo
> msEvalRegex(): Regular expression error. String (map2) failed
> expression test. <br>
>
> Please help! I am running mac os x, with a fink install of mapserver.
Webb,
MapServer validates the name of it's mapfile against a regular expression
in an attempt to prevent hostile visitors from being able to trick mapserv
into using non-map files (eg. /etc/passwd).
If you rename your map 2.map it should work. The default mapfile
regular expression just looks for the extension .map as far as I know.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the MapServer-users
mailing list