From owner-freebsd-www@FreeBSD.ORG Sun Jun 19 10:20:18 2005 Return-Path: X-Original-To: freebsd-www@hub.freebsd.org Delivered-To: freebsd-www@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7CAC16A41C for ; Sun, 19 Jun 2005 10:20:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BEB643D48 for ; Sun, 19 Jun 2005 10:20:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j5JAKITS021244 for ; Sun, 19 Jun 2005 10:20:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j5JAKICK021243; Sun, 19 Jun 2005 10:20:18 GMT (envelope-from gnats) Date: Sun, 19 Jun 2005 10:20:18 GMT Message-Id: <200506191020.j5JAKICK021243@freefall.freebsd.org> To: freebsd-www@FreeBSD.org From: Daniel Gerzo Cc: Subject: Re: www/82379: /cgi/query-pr.cgi has no submit button X-BeenThere: freebsd-www@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Gerzo List-Id: FreeBSD Project Webmasters List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jun 2005 10:20:18 -0000 The following reply was made to PR www/82379; it has been noted by GNATS. From: Daniel Gerzo To: bug-followup@FreeBSD.org, ed@fxq.nl Cc: Subject: Re: www/82379: /cgi/query-pr.cgi has no submit button Date: Sun, 19 Jun 2005 12:19:11 +0200 --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This diff adds the submit button and it also cleans little bit html tags. -- Sincerely, DanGer, ICQ: 261701668 | e-mail protecting at: http://www.2pu.net/ http://danger.rulez.sk | proxy list at: http://www.proxy-web.com/ | FreeBSD - The Power to Serve! --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="query-pr.cgi.diff" --- query-pr.cgi.orig Sun Jun 19 11:38:55 2005 +++ query-pr.cgi Sun Jun 19 12:03:32 2005 @@ -27,9 +27,10 @@ ($scriptname = $ENV{'SCRIPT_NAME'}) =~ s|^/?|/|; $scriptname =~ s|/$||; ($summary = $scriptname) =~ s/query-pr/query-pr-summary/; - print "
\n"; - print "
\n"; - print "

See also the PR summary

\n"; + print "
\n"; + print "
\n"; + print "\n
\n"; + print "

See also the PR summary

\n"; print &html_footer; exit 0; } @@ -85,9 +86,9 @@ print &html_header("FreeBSD problem report"); if ($_ !~ /^query-pr(:?\.(:?real|web))?: no PRs matched$/) { print "

query-pr said:\n"; - print "

$_\n";
 +	    print "
$_\n";
  	    print ;
 -	    print "
\n"; + print "
\n"; } else { print "

No PR found matching $pr\n"; } @@ -96,7 +97,7 @@ } elsif (/^lockf: /) { print &html_header("FreeBSD problem report"); print "

The PR database is currently busy; please try ", - "your query again."; + "your query again."; print &html_footer; exit; } @@ -142,7 +143,7 @@ $origsyn = $syn; $syn = &fixline($syn); print &short_html_header("Problem Report $cat/$number: $syn"); - print "

Problem Report $cat/$number

\n"; + print "

Problem Report $cat/$number

\n"; print "$syn

\n

\n"; } else { next if $inhdr; @@ -156,7 +157,7 @@ $trailer .= $2; } if ($1 eq "Originator" && $from ne "") { # add email address - $trailer .= " <" . &fixline($from) . ">"; + $trailer .= " <" . &fixline($from) . ">"; } $blank = !($2); $multiline = 0; @@ -180,7 +181,7 @@ $origsyn =~ s/[^a-zA-Z+.@-]/"%" . sprintf("%02X", unpack("C", $&))/eg; $email =~ s/[^a-zA-Z+.@-]/"%" . sprintf("%02X", unpack("C", $&))/eg; -print qq`Submit Followup | Raw PR\n`; +print qq`Submit Followup | Raw PR\n`; print &html_footer; @@ -228,12 +229,12 @@ local($href) = local($html) = $_; $href =~ s/&/%26/g; $html =~ s/&/&/g; - $_ = "$html"; + $_ = "$html"; } else { s/&/&/g; s//>/g; - s%(\WPR[:s# \t]+)([a-z3486]+\/)?([0-9]+)%$1$2$3%ig; + s%(\WPR[:s# \t]+)([a-z3486]+\/)?([0-9]+)%$1$2$3%ig; } $isurl = ! $isurl; } --FCuugMFkClbJLl1L--