Your message dated Mon, 23 Mar 2015 13:13:50 +0100 with message-id <20150323121350.GA11840@xanadu.blop.info> and subject line Re: Bug#780969: UDD: bugs: fix HTML bugs on sponsorstats has caused the Debian Bug report #780969, regarding UDD: bugs: fix HTML bugs on sponsorstats to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 780969: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=780969 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: UDD: bugs: fix HTML bugs on sponsorstats
- From: Laurent Arnoud <laurent@spkdev.net>
- Date: Sun, 22 Mar 2015 16:38:42 +0100
- Message-id: <[🔎] 20150322153842.GA1436@spk-laptop>
Package: qa.debian.org Severity: minor Tags: patch User: qa.debian.org@packages.debian.org Usertags: udd Dear Maintainer, I found some [errors][1] on sponsorstats web page. I join the patch to fix that. Cheers, Laurent [1]: https://validator.nu/?doc=https%3A%2F%2Fudd.debian.org%2Fsponsorstats.cgi -- System Information: Debian Release: 8.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)From 1a6595dd27da0264406c59960e2dbf0b9501095c Mon Sep 17 00:00:00 2001 From: Laurent Arnoud <laurent@spkdev.net> Date: Sun, 22 Mar 2015 15:40:27 +0100 Subject: [PATCH] bugs: fix HTML bugs on sponsorstats see https://validator.nu/?doc=https%3A%2F%2Fudd.debian.org%2Fsponsorstats.cgi --- web/sponsorstats.cgi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/sponsorstats.cgi b/web/sponsorstats.cgi index 2be34c6..0b17cc4 100755 --- a/web/sponsorstats.cgi +++ b/web/sponsorstats.cgi @@ -1,6 +1,7 @@ #!/usr/bin/ruby require 'dbi' +require 'cgi' puts "Content-type: text/html; charset=utf-8\n\n" @@ -34,7 +35,8 @@ while row = sth.fetch do uploaders[row['login']][row['changed_by']] << [ row['source'], row['version'], row['nmu'] ] end -puts "<html><body>" +puts "<!DOCTYPE html><html><head><title>Sponsoring stats</title></head>" +puts "<body>" puts "<h1>Sponsoring stats, powered by UDD!</h1>" puts "<p>Uploads in <b>bold</b> were NMUs.</p>" puts "<p>That excludes uploads done for people who are now DD, even if the upload was done while they were not DD.</p>" @@ -48,7 +50,7 @@ uploaders.to_a.sort { |a,b| uploads[a[0]] <=> uploads[b[0]] }.reverse.each do |k puts "<li>#{rank}. #{k} -- #{names[k]} (#{uploads[k]} uploads)\n<ul>" v.to_a.sort { |a,b| a[1].length <=> b[1].length }.reverse.each do |k2| k2, v = k2 - puts "<li>#{k2} (#{v.length} uploads)\n<ul>" + puts "<li>#{CGI.escapeHTML(k2)} (#{v.length} uploads)\n<ul>" v.each do |u| if u[2] puts "<li><b>#{u[0]} #{u[1]}</b></li>" -- 2.1.4Attachment: signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
- To: Laurent Arnoud <laurent@spkdev.net>, 780969-done@bugs.debian.org
- Subject: Re: Bug#780969: UDD: bugs: fix HTML bugs on sponsorstats
- From: Lucas Nussbaum <lucas@debian.org>
- Date: Mon, 23 Mar 2015 13:13:50 +0100
- Message-id: <20150323121350.GA11840@xanadu.blop.info>
- In-reply-to: <[🔎] 20150322153842.GA1436@spk-laptop>
- References: <[🔎] 20150322153842.GA1436@spk-laptop>
Thanks! Applied. - Lucas On 22/03/15 at 16:38 +0100, Laurent Arnoud wrote: > Package: qa.debian.org > Severity: minor > Tags: patch > User: qa.debian.org@packages.debian.org > Usertags: udd > > Dear Maintainer, > > I found some [errors][1] on sponsorstats web page. > I join the patch to fix that. > > Cheers, > Laurent > > [1]: https://validator.nu/?doc=https%3A%2F%2Fudd.debian.org%2Fsponsorstats.cgi > > -- System Information: > Debian Release: 8.0 > APT prefers testing > APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') > Architecture: amd64 (x86_64) > Foreign Architectures: i386 > > Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores) > Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > From 1a6595dd27da0264406c59960e2dbf0b9501095c Mon Sep 17 00:00:00 2001 > From: Laurent Arnoud <laurent@spkdev.net> > Date: Sun, 22 Mar 2015 15:40:27 +0100 > Subject: [PATCH] bugs: fix HTML bugs on sponsorstats > > see https://validator.nu/?doc=https%3A%2F%2Fudd.debian.org%2Fsponsorstats.cgi > --- > web/sponsorstats.cgi | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/web/sponsorstats.cgi b/web/sponsorstats.cgi > index 2be34c6..0b17cc4 100755 > --- a/web/sponsorstats.cgi > +++ b/web/sponsorstats.cgi > @@ -1,6 +1,7 @@ > #!/usr/bin/ruby > > require 'dbi' > +require 'cgi' > > puts "Content-type: text/html; charset=utf-8\n\n" > > @@ -34,7 +35,8 @@ while row = sth.fetch do > uploaders[row['login']][row['changed_by']] << [ row['source'], row['version'], row['nmu'] ] > end > > -puts "<html><body>" > +puts "<!DOCTYPE html><html><head><title>Sponsoring stats</title></head>" > +puts "<body>" > puts "<h1>Sponsoring stats, powered by UDD!</h1>" > puts "<p>Uploads in <b>bold</b> were NMUs.</p>" > puts "<p>That excludes uploads done for people who are now DD, even if the upload was done while they were not DD.</p>" > @@ -48,7 +50,7 @@ uploaders.to_a.sort { |a,b| uploads[a[0]] <=> uploads[b[0]] }.reverse.each do |k > puts "<li>#{rank}. #{k} -- #{names[k]} (#{uploads[k]} uploads)\n<ul>" > v.to_a.sort { |a,b| a[1].length <=> b[1].length }.reverse.each do |k2| > k2, v = k2 > - puts "<li>#{k2} (#{v.length} uploads)\n<ul>" > + puts "<li>#{CGI.escapeHTML(k2)} (#{v.length} uploads)\n<ul>" > v.each do |u| > if u[2] > puts "<li><b>#{u[0]} #{u[1]}</b></li>" > -- > 2.1.4 >Attachment: signature.asc
Description: Digital signature
--- End Message ---