Bug in sub hrefquote

Quezada, Alex Alex.Quezada at NielsenMedia.com
Fri Jul 16 08:09:12 PDT 2004


Hi,

	this routine is incorrectly translating spaces into +:  
y/ /+/;

	This is wrong, and if you have directories in your path that include
spaces, the link you get is wrong.  I have replaced this with a substitution
of '%20', which works as expected.  Here's how it ends up:

sub hrefquote($)
{
  local ($_) = @_;

  s/ /%20/g;

  htmlquote($_);
}

	There's probably other ways to do this (like urlencode), but this
seems simpler.

	Thanks!

		Alex

PS: I figured out my broken binary problem.  BEA Weblogic's cgi interpreter
was the culprit.  I installed Apache, and all is peachy now.


More information about the freebsd-cvsweb mailing list