Commit 1e6fb13c authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity: web page may contains base64 images

parent 26e87b1a
...@@ -18,6 +18,10 @@ if img_string is None or img_string == "": ...@@ -18,6 +18,10 @@ if img_string is None or img_string == "":
return img_string return img_string
img_src = re.findall("src=['\"](.*?)['\"]", img_string)[0] img_src = re.findall("src=['\"](.*?)['\"]", img_string)[0]
if img_src.startswith('data:image/'):
return img_string
img_type = None img_type = None
# START user ignoring guidelines: # 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