Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: [PerlFlunkie] Lowercase category name in url

Quote Reply
Re: [PerlFlunkie] Lowercase category name in url In reply to
The Category Check found nothing wrong.

In db_utils.pl file the code I changed was from...

sub urlencode {
# --------------------------------------------------------
# Escapes a string to make it suitable for printing as a URL.
#
my($toencode) = shift;
$toencode =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
$toencode =~ s/\%2F/\//g;
return $toencode;

And I changed it to........... shown in red


sub urlencode {
# --------------------------------------------------------
# Escapes a string to make it suitable for printing as a URL.
#
my($toencode) = shift;
$toencode =~ s/([^a-zA-Z0-9_\-.])/uc sprintf("%%%02x",ord($1))/eg;
$toencode =~ s/\%2F/\//g;
return lc($toencode);


The url changes to lowercase but the category check doesn't find a problem. I really don't want the on-page text for the category name to be in lowercase.
Subject Author Views Date
Thread Lowercase category name in url SliderMan 3944 Sep 12, 2004, 11:17 AM
Thread Re: [SliderMan] Lowercase category name in url
Andy 3878 Sep 13, 2004, 2:37 AM
Thread Re: [Andy] Lowercase category name in url
SliderMan 3879 Sep 13, 2004, 7:10 AM
Thread Re: [SliderMan] Lowercase category name in url
SliderMan 3844 Oct 5, 2004, 1:22 AM
Thread Re: [SliderMan] Lowercase category name in url
PerlFlunkie 3854 Oct 5, 2004, 5:39 PM
Thread Re: [PerlFlunkie] Lowercase category name in url
SliderMan 3840 Oct 7, 2004, 12:14 PM
Post Post deleted by SliderMan
SliderMan 3837 Oct 8, 2004, 9:32 PM
Post Re: [Andy] Lowercase category name in url
SliderMan 3861 Oct 8, 2004, 10:30 PM