Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 299214 Details for
Bug 438956
mirrors.fedoraproject maps + to blank
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to translate urls
0001-Use-urllib.unquote-quote-to-create-proper-urls-when.patch (text/plain), 1.45 KB, created by
Jesse Keating
on 2008-03-26 19:06:29 UTC
(
hide
)
Description:
Patch to translate urls
Filename:
MIME Type:
Creator:
Jesse Keating
Created:
2008-03-26 19:06:29 UTC
Size:
1.45 KB
patch
obsolete
>From da95fd8fd50c91852c8419d3988484ee3c62478a Mon Sep 17 00:00:00 2001 >From: Jesse Keating <jkeating@redhat.com> >Date: Wed, 26 Mar 2008 15:02:14 -0400 >Subject: [PATCH] Use urllib.unquote/quote to create proper urls when special chars are passed. > >We have to unquote first in case pre-translated urls are passed in or mixed >urls. After unquoting we can requote to have a fully clean url to hand back >to the client. >--- > mirrors/server-scripts/mirrorlist_server.py | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > >diff --git a/mirrors/server-scripts/mirrorlist_server.py b/mirrors/server-scripts/mirrorlist_server.py >index 1a10f45..21b7e72 100755 >--- a/mirrors/server-scripts/mirrorlist_server.py >+++ b/mirrors/server-scripts/mirrorlist_server.py >@@ -13,6 +13,8 @@ from IPy import IP > import GeoIP > import bisect > >+import urllib >+ > # can be overridden on the command line > socketfile = '/tmp/mirrormanager_mirrorlist_server.sock' > cachefile = '/tmp/mirrorlist_cache.pkl' >@@ -239,7 +241,10 @@ def do_mirrorlist(kwargs): > file = None > cache = None > if kwargs.has_key('path'): >- path = kwargs['path'].strip('/') >+ # quote/unquote here to handle when a client may send say %2B direcly >+ # instead of +, or a mix of both. Re-quote to have everything in a >+ # clean url. >+ path = urllib.quote(urllib.unquote(kwargs['path'].strip('/'))) > header = "# path = %s " % (path) > > sdir = path.split('/') >-- >1.5.4.4 >
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 438956
: 299214