From owner-freebsd-doc Tue Apr 6 10:12: 2 1999 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E3DEB15097 for ; Tue, 6 Apr 1999 10:11:58 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id KAA74140; Tue, 6 Apr 1999 10:10:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Tue, 6 Apr 1999 10:10:01 -0700 (PDT) Message-Id: <199904061710.KAA74140@freefall.freebsd.org> To: freebsd-doc@FreeBSD.ORG Cc: From: Tom Hukins Subject: Re: docs/10182: http://www.freebsd.org/cgi/query-pr.cgi?pr=5038 Reply-To: Tom Hukins Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR docs/10182; it has been noted by GNATS. From: Tom Hukins To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: docs/10182: http://www.freebsd.org/cgi/query-pr.cgi?pr=5038 Date: Tue, 6 Apr 1999 17:48:31 +0100 Anders Nordby wrote: > Why is there a HTML link inside the uuencoded data on this page? > It seems you're parsing text with a # and a number after it as a > HTML-link, which isn't very good for encoded data like that. ;) This is due to the PR reference matching regexp in query-pr.cgi. Line 206 of query-pr.cgi begins: $line =~ s%(\WPR[:s# \t]+)([a-z386]+\/)?([0-9]+) The uuencoded text contains the string PR#63, which query-pr.cgi assumes is a reference to another PR. The script could be modified to ignore uuencoded data, but the problem would still occur if someone includes the string PR#63 or similar in a patch, for example. I suggest the best way to fix this might be for query-pr.cgi to have an "as_text" option which doesn't do any special parsing of PRs. Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message