Gossamer Forum
Home : Products : Gossamer Links : Discussions :

help/experience with url_escape with Title

Quote Reply
help/experience with url_escape with Title
Hi,

I want to use rewrite rules to build nice urls for the detailed pages.
Now it seems there is a problem with some characters.
At the moment I made a small sub with the following lines:

Code:
sub {
my $return = $_[0];
$return =~ s/\s|\/|;|"|&/-/g;
$return = GT::CGI::escape($return);
$return =~ s/-{1,}/-/g;
return $return;
}

Thank you for any feedback.

Regards

Niko
Subject Author Views Date
Thread help/experience with url_escape with Title el noe 2496 Mar 5, 2009, 4:24 AM
Thread Re: [el noe] help/experience with url_escape with Title
Andy 2419 Mar 5, 2009, 7:15 AM
Thread Re: [Andy] help/experience with url_escape with Title
el noe 2406 Mar 5, 2009, 7:25 AM
Thread Re: [el noe] help/experience with url_escape with Title
Andy 2411 Mar 5, 2009, 7:30 AM
Post Re: [Andy] help/experience with url_escape with Title
el noe 2427 Mar 5, 2009, 7:51 AM