From owner-freebsd-cvsweb@FreeBSD.ORG Fri Jul 16 15:09:12 2004 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EF3F16A4CE for ; Fri, 16 Jul 2004 15:09:12 +0000 (GMT) Received: from yorktown.nielsenmedia.com (yorktown.nielsenmedia.com [206.113.192.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id B854F43D1D for ; Fri, 16 Jul 2004 15:09:11 +0000 (GMT) (envelope-from Alex.Quezada@nielsenmedia.com) Received: from NMRFLIMG1.nmrlan.net (nmrflimg1.nmrlan.net [10.38.67.53]) i6GF7prE022945 for ; Fri, 16 Jul 2004 11:07:51 -0400 (EDT) Received: from nmrusdunsxg2.nielsenmedia.com (unverified) by NMRFLIMG1.nmrlan.net for ; Fri, 16 Jul 2004 11:09:08 -0400 Received: by nmrusdunsxg2.nmrlan.net with Internet Mail Service (5.5.2653.19) id ; Fri, 16 Jul 2004 11:09:44 -0400 Message-ID: <762A181C0D966E459A2EB3B810142C7707B2196B@nmrusdunsx12.nmrlan.net> From: "Quezada, Alex" To: "'freebsd-cvsweb@freebsd.org'" Date: Fri, 16 Jul 2004 11:09:03 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: Bug in sub hrefquote X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 15:09:12 -0000 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.