Commit 8d0d3daa authored by kiko%async.com.br's avatar kiko%async.com.br

Fix for bug 251841: body id from urlbase with tilde (~) fails

validation. Swap [sequences of] tilde, hypens and some other common symbols into hyphens. r=burnus, a=myk.
parent cb2d1a0a
......@@ -101,8 +101,8 @@
#%]
<body bgcolor="[% bgcolor %]" onload="[% onload %]"
id="[% Param('urlbase').replace('^https?://','').replace('/$','').replace('[@:/.]','-') %]"
[% bodyattrs %]>
id="[% Param('urlbase').replace('^https?://','').replace('/$','').replace('[-~@:/.]+','-') %]"
[%+ bodyattrs %]>
[%# Migration note: the following file corresponds to the old Param
# 'bannerhtml'
......
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