Commit 9146031b authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web: make sure link has value

parent 83f6ea69
...@@ -35,6 +35,7 @@ class ReplaceRelativeUrlTextDocument(TextDocument, object): ...@@ -35,6 +35,7 @@ class ReplaceRelativeUrlTextDocument(TextDocument, object):
# By conversion, first letter of reference should be upper case # By conversion, first letter of reference should be upper case
# To be more sure of what to replace # To be more sure of what to replace
# erp5-Howto # erp5-Howto
if new_link:
if new_link[0].isupper() or new_link.startswith('erp5-') or new_link.startswith('user-') or \ if new_link[0].isupper() or new_link.startswith('erp5-') or new_link.startswith('user-') or \
new_link.startswith('slapos-') or new_link.startswith('vifib-') or new_link.startswith('osoe-') or \ new_link.startswith('slapos-') or new_link.startswith('vifib-') or new_link.startswith('osoe-') or \
new_link.startswith('developer-') or new_link.startswith('slapOS'): new_link.startswith('developer-') or new_link.startswith('slapOS'):
......
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