I'm really liking CAP::Dispatch and have been trying to customise some
URL's with CAP::Dispatch::Regexp. Question is how can I include an
actual query string in the url?
For example: www.myapp.com/search/?query=test
qr|/search/\?query=(.*)/?| => {app => 'Search', names => ['query']}
I was trying to escape the query string by "\?" but the dispatch table
can't recognise it.
I have another more general question. As CAP::Dispatch is matching
variables the sytax changes later in your Apps. ie: to get access to a
variable you would use:
my $variable= $self->param('variable');
I'm running in a plain CGI environment and before I would have
collected the variable with CGI ie:
my $q = $self->query();
my $variable= $q->param('variable');
Does this mean CGI.pm isn't being used anymore to parse the variable,
and is it still necessary to untaint the variable?
Sorry if any of these qeustions are basic but i'm no expert and i'm
still trying to learn!
Thanks
Rob
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]