Robert Landrum writes:
> sub escaped {
> my $val = shift;
> $val =~ s/(\W)/sprintf("%%%.2X",ord($1))/g;
> return $val;
> }
>
> my $content = join('&',map{$_."=".escaped($r->param($_))}($r->param));
>
> my $internal_url = "/some/path/to/handler?$content";
> $r->internal_redirect($internal_url);
>
Isn't it considered good practice to use Apache::Util::escape_uri() on
the constructed URI or URI::Escape::uri_escape() instead of writing
one's one character escaping routines? For one, it should be faster,
especially the Apache::Util method as it is written in C.