[FIX] web_linkedin: update master img CDN domain, recently changed
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user