(Answer) (Category) WebGUI FAQ : (Category) Troubleshooting :
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]
Previous: (Answer) FreeBSD, mod_perl2, apache2, GATEWAY_INTERFACE not Perl!, Can't locate ModPerl/Registry.pm (New: Apache::Request on mod_perl2 RC5)
Next: (Answer) ? Question marks, Squares, strange characters on upgrade to 6.2.x+
This document is: http://www.gwy2.org/cgi-bin/fom?file=16
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by ... Gerald Young