Skip to content

Commit

Permalink
webfrontend: pipes.quote file url in phab ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyifei1999 committed May 2, 2016
1 parent dc029ce commit 863b368
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/python/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,12 @@ def get_title_from_task(id):

def create_phab_url(es):
"""Create a server side upload Phabricator URL."""
import pipes

wgetlinks = []

for e in es:
wgetlink = 'wget ' + e.url + '{,.txt}'
wgetlink = 'wget ' + pipes.quote(e.url) + '{,.txt}'
if e.hashsum:
wgetlink += ' # ' + e.hashsum
wgetlinks.append(wgetlink)
Expand Down

0 comments on commit 863b368

Please sign in to comment.