From tom@eborcom.com Fri Mar 26 06:40:27 1999 Return-Path: Received: from mail1.svr.pol.co.uk (mail1.svr.pol.co.uk [195.92.193.18]) by hub.freebsd.org (Postfix) with ESMTP id 4C1591500E for ; Fri, 26 Mar 1999 06:40:26 -0800 (PST) (envelope-from tom@eborcom.com) Received: from modem-113.ytterbium.dialup.pol.co.uk ([62.136.34.241]) by mail1.svr.pol.co.uk with esmtp (Exim 2.12 #1) id 10QXmJ-0002PS-00 for freebsd-gnats-submit@freebsd.org; Fri, 26 Mar 1999 14:40:07 +0000 Received: (qmail 3672 invoked by uid 5000); 26 Mar 1999 11:15:58 -0000 Message-Id: <19990326111557.A3627@eborcom.com> Date: Fri, 26 Mar 1999 11:15:57 +0000 From: Tom Hukins To: freebsd-gnats-submit@freebsd.org, anders@fix.no Subject: Re: http://www.freebsd.org/cgi/query-pr.cgi?pr=5038 >Number: 10800 >Category: misc >Synopsis: Problem with http://www.freebsd.org/cgi/query-pr.cgi?pr=5038 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 26 06:50:01 PST 1999 >Closed-Date: Fri Apr 2 07:42:43 PST 1999 >Last-Modified: Fri Apr 2 07:43:16 PST 1999 >Originator: >Release: >Organization: >Environment: >Description: > 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 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: steve Responsible-Changed-When: Mon Mar 29 17:51:07 PST 1999 Responsible-Changed-Why: Misfiled PR. From: Tom Hukins To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: misc/10800: Problem with http://www.freebsd.org/cgi/query-pr.cgi?pr=5038 Date: Fri, 2 Apr 1999 14:58:20 +0100 I have opened this PR by accident. The message it contains was meant to be a follow-up to docs/10182. Apologies, Tom State-Changed-From-To: open->closed State-Changed-By: steve State-Changed-When: Fri Apr 2 07:42:43 PST 1999 State-Changed-Why: Intended as a followup to docs/10182 >Unformatted: