Commit 55470c04 authored by Romain Loth's avatar Romain Loth

allow more characters in url strings

parent 243410a0
......@@ -32,7 +32,7 @@ def sanitize(value, specific_type=None):
# NB san_val_bool = bool(san_val)
elif specific_type == "surl":
san_val = sub(r'[^\w@\.: -/]', '_', str_val)
san_val = sub(r'[^\w@\.: /~_+$?=&%-\'"]', '_', str_val)
elif specific_type == "sdate":
san_val = sub(r'[^0-9/-:]', '_', str_val)
......
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