Commit 2bd1cb51 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity: path should not be absolute

parent 25e965c3
...@@ -45,7 +45,8 @@ if img_src.startswith("http"): ...@@ -45,7 +45,8 @@ if img_src.startswith("http"):
if validation_freebie is None: if validation_freebie is None:
#END user ignoring guidelines #END user ignoring guidelines
if img_src[0] == '/':
img_src = img_src[1:]
img_obj = context.restrictedTraverse(img_src.split("?")[0], None) img_obj = context.restrictedTraverse(img_src.split("?")[0], None)
# flag broken link until further notice # flag broken link until further notice
......
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