Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 445058 Details for
Bug 582706
custom_extraperms.cgi doesn't encode + signs in email addresses
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
custom_extraperms.cgi-use-uri_escape-on-usernames.patch
0001-custom_extraperms.cgi-use-uri_escape-on-usernames.patch (text/plain), 1.59 KB, created by
Adam Feldman
on 2016-09-06 01:16:59 UTC
(
hide
)
Description:
custom_extraperms.cgi-use-uri_escape-on-usernames.patch
Filename:
MIME Type:
Creator:
Adam Feldman
Created:
2016-09-06 01:16:59 UTC
Size:
1.59 KB
patch
obsolete
>From 37aa78cc24abba1eb524ccd8c4f5ca0c46f433ba Mon Sep 17 00:00:00 2001 >From: NP-Hardass <np.hardass@gmail.com> >Date: Mon, 5 Sep 2016 21:00:47 -0400 >Subject: [PATCH] custom_extraperms.cgi: use uri_escape on usernames > >Encodes usernames so that they are passed properly in the query URI > >Gentoo-Bug: #582706 >--- > custom_extraperms.cgi | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/custom_extraperms.cgi b/custom_extraperms.cgi >index 01ffcbe..ceda007 100755 >--- a/custom_extraperms.cgi >+++ b/custom_extraperms.cgi >@@ -3,6 +3,8 @@ use strict; > > use lib qw(. lib); > >+use URI::Escape; >+ > use Bugzilla; > use Bugzilla::Constants; > use Bugzilla::Error; >@@ -59,7 +61,7 @@ $users = $dbh->selectall_arrayref( > > printf "<h3>Arch Testers that are not \@gentoo.org</h3>\n"; > foreach my $row (@$users) { >- printf "<a href='%scustom_userhistory.cgi?matchstr=%s'>%s</a><br />\n", correct_urlbase(), $row->{'login_name'}, $row->{'login_name'}; >+ printf "<a href='%scustom_userhistory.cgi?matchstr=%s'>%s</a><br />\n", correct_urlbase(), uri_escape($row->{'login_name'}), $row->{'login_name'}; > } > > $users = $dbh->selectall_arrayref( >@@ -69,5 +71,5 @@ $users = $dbh->selectall_arrayref( > ); > printf "<h3>Users with Other Groups</h3>\n"; > foreach my $row (@$users) { >- printf "<a href='%scustom_userhistory.cgi?matchstr=%s'>%s</a>: %s<br />\n", correct_urlbase(), $row->{'login_name'}, $row->{'login_name'}, $row->{'group_name'}; >+ printf "<a href='%scustom_userhistory.cgi?matchstr=%s'>%s</a>: %s<br />\n", correct_urlbase(), uri_escape($row->{'login_name'}), $row->{'login_name'}, $row->{'group_name'}; > } >-- >2.7.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 582706
:
445056
| 445058