[FIX] web_linkedin: update master img CDN domain, recently changed

This commit is contained in:
Olivier Dony 2014-07-01 12:22:28 +02:00
parent f825b6043b
commit 3d3134108d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ class Binary(openerp.addons.web.http.Controller):
_scheme, _netloc, path, params, query, fragment = urlparse(url)
# media.linkedin.com is the master domain for LinkedIn media (replicated to CDNs),
# so forcing it should always work and prevents abusing this method to load arbitrary URLs
url = urlunparse(('http', 'media.linkedin.com', path, params, query, fragment))
url = urlunparse(('http', 'media.licdn.com', path, params, query, fragment))
bfile = urllib2.urlopen(url)
return base64.b64encode(bfile.read())