Open tbonfort opened 12 years ago
Author: sdlime Date: 2006/12/26 - 22:19
I committed an enhancement to mapserv.c today that allows users to define a
validation pattern in layer metadata. For example, let's say you are use a
variable foo to pass in a runtime change to an expression. Then you could set
something like:
foo_validation_pattern "\d{3}"
The value supplied for foo *must* be a 3 digit integer. If not a validation
error is returned.
Seems to work fine in testing. I chose layer-level metadata since all
substitutions are at the layer-level.
There are a couple of downsides:
- users are not required to set a validation pattern
- regex isn't the easiest of languages to master
Thoughts?
Steve
Author: sdlime Date: 2006/12/29 - 06:25
With no feedback I'll assume the changes are ok. This doesn't break
compatability and while technically a new feature I think anything security
related should be backported to the current version (which I have done).
Changing to a documentation bug...
Steve
Author: dmorissette Date: 2009/10/09 - 03:10 Has this been documented already?
Author: hobu Date: 2009/10/25 - 05:06 I think http://mapserver.org/cgi/runsub.html has it fairly well now. Done quite a while ago, so I'll move the milestone.
Reporter: sdlime Date: 2006/09/22 - 23:36