[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

%20 to " " and vice versa.



$file=~s/%20/ /g;
$path=~s/%20/ /g;
Added to getfile

Another line removed from webglimpse.cgi, after the glimpse line parsing.
# GFM fix for commas in links creating problems later
# remap %2c back to comma for nicer appearance
#$link =~ s/%2c/,/g;
$link =~ s/,/%2c/g;   

I'm not sure what the fix was about, but on my machine, commas in links 
were resulting in broken links.

Also,  about this whole thing in general.  Perhaps a small method to do 
all the appropriate substitutions, in both directions?
I'm sure such things already exist perl HTTP libs, heck, in javascript, 
it is as simple as escape("string");