forked from github/share-post
share_post: prevent double-quoting in Twitter URL
Both parameters being concatenated have already been quoted: don't do that twice. Do make sure to quote the separating space though.
This commit is contained in:
parent
9052e10aa7
commit
f510f7f9e6
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def share_post(content):
|
|||
url = article_url(content)
|
||||
summary = article_summary(content)
|
||||
|
||||
tweet = quote(('%s %s' % (title, url)).encode('utf-8'))
|
||||
tweet = ('%s%s%s' % (title, quote(' '), url)).encode('utf-8')
|
||||
facebook_link = 'http://www.facebook.com/sharer/sharer.php?s=100&p%%5Burl%%5D=%s' % url
|
||||
gplus_link = 'https://plus.google.com/share?url=%s' % url
|
||||
twitter_link = 'http://twitter.com/home?status=%s' % tweet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue