Commit c8728daf authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity: web page may contains base64 images

parent e9cc6f29
......@@ -18,6 +18,10 @@ if img_string is None or img_string == "":
return img_string
img_src = re.findall("src=['\"](.*?)['\"]", img_string)[0]
if img_src.startswith('data:image/'):
return img_string
img_type = None
# START user ignoring guidelines:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment