|
|
http:\\\index.pl\ problem- Sitename disappears |
| From a post by OhGoOn: It turns out that a white space at the end of the lines refering to "sitename" causes the url in the links to show: http:\\\index.pl\mylink.I have an install batch that creates a new configuration file www.newconfig.com.conf from scratch, unfortunatelly it left a blank space behind some of the lines. This space is aparently not stripped out correcly in url.pm in the makecompliant sub: sub makeCompliant
{
my ($value);
$value = $_[0];
$value =~ s/\s+$//; #removes trailing whitespace
$value =~ s/ #removes leading hitespace
$value =~ s/ #removes leading slash
$value =~ s/ /_/g; #replaces whitespace with underscores
$value =~ s/\.$//; #removes trailing period
$value =~ s/[ #removes all funky characters
$value =~ s/ #removes a preceeding /
$value =~ s/\/\//\//g; #removes double /
return $value;
}
Two solutions:
1 - don't leave spaces behind lines in the config file 2 - improve the stripping out of whitespaces. I presume the sub responsible is makeCompliant in url.pm. I am not sure how to change it as it seems that the sub is already doing this. wg-fomATgwyDOTorg | |
| [Append to This Answer] |
| ||||||||