]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 251841: body id from urlbase with tilde (~) fails
authorkiko%async.com.br <>
Wed, 21 Jul 2004 19:51:33 +0000 (19:51 +0000)
committerkiko%async.com.br <>
Wed, 21 Jul 2004 19:51:33 +0000 (19:51 +0000)
validation. Swap [sequences of] tilde, hypens and some other common
symbols into hyphens. r=burnus, a=myk.

template/en/default/global/header.html.tmpl

index 511b778e6d56c444f66d144e7d648b5f34ba0c44..11899dd45dc97c4e3bc7a9d7c2bb2fc6a209001b 100644 (file)
   #%]
 
   <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'