]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 369933: Use Bugzilla::Util::correct_urlbase() everywhere in templates to get...
authorlpsolit%gmail.com <>
Thu, 19 Apr 2007 15:05:20 +0000 (15:05 +0000)
committerlpsolit%gmail.com <>
Thu, 19 Apr 2007 15:05:20 +0000 (15:05 +0000)
27 files changed:
Bugzilla/Template.pm
template/en/default/account/email/change-new.txt.tmpl
template/en/default/account/email/change-old.txt.tmpl
template/en/default/account/email/request-new.txt.tmpl
template/en/default/account/password/forgotten-password.txt.tmpl
template/en/default/bug/edit.html.tmpl
template/en/default/bug/show.xml.tmpl
template/en/default/config.js.tmpl
template/en/default/config.rdf.tmpl
template/en/default/email/newchangedmail.txt.tmpl
template/en/default/email/sanitycheck.txt.tmpl
template/en/default/email/sudo.txt.tmpl
template/en/default/email/votes-removed.txt.tmpl
template/en/default/email/whine.txt.tmpl
template/en/default/global/header.html.tmpl
template/en/default/global/site-navigation.html.tmpl
template/en/default/index.html.tmpl
template/en/default/list/list-simple.html.tmpl
template/en/default/list/list.atom.tmpl
template/en/default/list/list.ics.tmpl
template/en/default/list/list.rdf.tmpl
template/en/default/reports/duplicates.rdf.tmpl
template/en/default/request/email.txt.tmpl
template/en/default/search/search-plugin.xml.tmpl
template/en/default/sidebar.xul.tmpl
template/en/default/whine/mail.html.tmpl
template/en/default/whine/mail.txt.tmpl

index 42e335f954968134d780cf40a063884655d506fb..8a3917c0238ee6a58d6bad61572cd8e805f0d473 100644 (file)
@@ -804,6 +804,9 @@ sub create {
                 Bugzilla::BugMail::Send($id, $mailrecipients);
             },
 
+            # Allow templates to access the "corect" URLBase value
+            'urlbase' => sub { return Bugzilla::Util::correct_urlbase(); },
+
             # These don't work as normal constants.
             DB_MODULE        => \&Bugzilla::Constants::DB_MODULE,
             REQUIRED_MODULES => 
index d3494e62aacf5cf400d215742860cc225c22f446..e7d3d6ba1508f27670d42686b3046ae16e3952d8 100644 (file)
@@ -32,12 +32,12 @@ for the account [% oldemailaddress %] to your address.
 
 To confirm the change, visit the following link:
 
-[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cfmem
+[%+ urlbase %]token.cgi?t=[% token FILTER url_quote %]&a=cfmem
 
 If you are not the person who made this request, or you wish to cancel
 this request, visit the following link:
 
-[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cxlem
+[%+ urlbase %]token.cgi?t=[% token FILTER url_quote %]&a=cxlem
 
 If you do nothing, the request will lapse after [%+ max_token_age %] days
 (on [%+ time2str("%B %o, %Y at %H:%M %Z", expiration_ts) %]).
index b50cbfa1b000eba8c8a174c6e173c6b5771d37a2..7b229977b31e64e80a478bbf9d05aeb2c409a0ab 100644 (file)
@@ -41,7 +41,7 @@ for your account to [%+ newemailaddress %].
 If you are not the person who made this request, or you wish to cancel
 this request, visit the following link:
 
-[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cxlem
+[%+ urlbase %]token.cgi?t=[% token FILTER url_quote %]&a=cxlem
 
 If you do nothing, and [%+ newemailaddress %] confirms this request,
 the change will be made permanent after [%+ max_token_age %] days
index 3fcdddfd17b2d33db16f86d0bac7eb05e91a82c9..3248e4b38100206ed6bd9b8f8e998949b9db9e6c 100644 (file)
@@ -34,12 +34,12 @@ using your email address ([% email %]).
 To confirm that you want to create an account using that email address,
 visit the following link:
 
-[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=request_new_account
+[%+ urlbase %]token.cgi?t=[% token FILTER url_quote %]&a=request_new_account
 
 If you are not the person who made this request, or you wish to cancel
 this request, visit the following link:
 
-[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cancel_new_account
+[%+ urlbase %]token.cgi?t=[% token FILTER url_quote %]&a=cancel_new_account
 
 If you do nothing, the request will lapse after [%+ constants.MAX_TOKEN_AGE %] days
 (on [%+ time2str("%B %o, %Y at %H:%M %Z", expiration_ts) %]).
index 75720e7c8a63ee4b7aa9b018752394c579830e5a..bd6cd3db9cfd62f1dc510a1b9ab6ddc0484a07ea 100644 (file)
@@ -30,12 +30,12 @@ X-Bugzilla-Type: admin
 You have (or someone impersonating you has) requested to change your 
 [%+ terms.Bugzilla %] password. To complete the change, visit the following link:
 
-[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cfmpw
+[%+ urlbase %]token.cgi?t=[% token FILTER url_quote %]&a=cfmpw
 
 If you are not the person who made this request, or you wish to cancel
 this request, visit the following link:
 
-[%+ Param('urlbase') %]token.cgi?t=[% token FILTER url_quote %]&a=cxlpw
+[%+ urlbase %]token.cgi?t=[% token FILTER url_quote %]&a=cxlpw
 
 If you do nothing, the request will lapse after [%+ max_token_age +%] days (at 
 precisely [%+ time2str("%H:%M on the %o of %B, %Y", expiration_ts) -%]) or when you 
index 037ea443d26c4a30f38062838c540e50367fc581..215595e5a0011239c868f3089b08fc6219d33a90 100644 (file)
         <b>[% terms.Bug %]#</b>:
       </td>
       <td>
-        <a href="[% Param('urlbase') %]show_bug.cgi?id=[% bug.bug_id %]">
+        <a href="[% urlbase FILTER html %]show_bug.cgi?id=[% bug.bug_id %]">
            [% bug.bug_id %]</a>
       </td>
     </tr>
index 61b597f727b797e948500a5630f5851320799d7b..6db4aab27067d0608dd0e94b89cb9b571a9e9013 100644 (file)
   #%]
 [% PROCESS bug/time.html.tmpl %]
 <?xml version="1.0" [% IF Param('utf8') %]encoding="UTF-8" [% END %]standalone="yes" ?>
-<!DOCTYPE bugzilla SYSTEM "[% Param('urlbase') %]bugzilla.dtd">
+<!DOCTYPE bugzilla SYSTEM "[% urlbase FILTER html %]bugzilla.dtd">
 
 <bugzilla version="[% constants.BUGZILLA_VERSION %]"
-          urlbase="[% Param('urlbase') %]"
+          urlbase="[% urlbase FILTER xml %]"
           maintainer="[% Param('maintainer') FILTER xml %]"
 [% IF user.id %]
           exporter="[% user.email FILTER xml %]"
index 2427c8748a6733926919cf218d9ce385813f37d0..a3f54d268fc337a2d76b565034230c19ded20f22 100644 (file)
@@ -26,7 +26,7 @@
 
 // the global bugzilla url
 var installation = {
-  base_url        : '[% Param('urlbase') FILTER js %]',
+  base_url        : '[% urlbase FILTER js %]',
   install_version : '[% constants.BUGZILLA_VERSION FILTER js %]',
   maintainer      : '[% Param('maintainer') FILTER js %]'
 };
index 32e94cbcace15ed3f2a608b37797530e7e3e4056..b74ca42cee16beb84c41b3b700da1785670bf3f3 100644 (file)
@@ -27,7 +27,7 @@
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:bz="http://www.bugzilla.org/rdf#">
 
-<bz:installation rdf:about="[% Param('urlbase') FILTER html %]">
+<bz:installation rdf:about="[% urlbase FILTER xml %]">
   <bz:install_version>[% constants.BUGZILLA_VERSION FILTER html %]</bz:install_version>
   <bz:maintainer>[% Param('maintainer') FILTER html %]</bz:maintainer>
 
     <Seq>
       [% FOREACH product = products %]
         <li>
-          <bz:product rdf:about="[% Param('urlbase') %]product.cgi?name=[% product.name FILTER uri %]">
+          <bz:product rdf:about="[% urlbase FILTER xml %]product.cgi?name=[% product.name FILTER uri %]">
             <bz:name>[% product.name FILTER html %]</bz:name>
 
             <bz:components>
               <Seq>
                 [% FOREACH component = product.components %]
-                  <li resource="[% Param('urlbase') %]component.cgi?name=[% component.name FILTER uri %]"/>
+                  <li resource="[% urlbase FILTER xml %]component.cgi?name=[% component.name FILTER uri %]"/>
                 [% END %]
               </Seq>
             </bz:components>
             <bz:versions>
               <Seq>
                 [% FOREACH version = product.versions %]
-                  <li resource="[% Param('urlbase') %]version.cgi?name=[% version.name FILTER uri %]"/>
+                  <li resource="[% urlbase FILTER xml %]version.cgi?name=[% version.name FILTER uri %]"/>
                 [% END %]
               </Seq>
             </bz:versions>
               <bz:target_milestones>
                 <Seq>
                   [% FOREACH milestone = product.milestones %]
-                    <li resource="[% Param('urlbase') %]milestone.cgi?name=[% milestone.name FILTER uri %]"/>
+                    <li resource="[% urlbase FILTER xml %]milestone.cgi?name=[% milestone.name FILTER uri %]"/>
                   [% END %]
                 </Seq>
               </bz:target_milestones>
       [% FOREACH product = products %]
         [% FOREACH component = product.components %]
           <li>
-            <bz:component rdf:about="[% Param('urlbase') %]component.cgi?name=[% component.name FILTER uri %]">
+            <bz:component rdf:about="[% urlbase FILTER xml %]component.cgi?name=[% component.name FILTER uri %]">
               <bz:name>[% component.name FILTER html %]</bz:name>
             </bz:component>
           </li>
       [% FOREACH product = products %]
         [% FOREACH version = product.versions %]
           <li>
-            <bz:version rdf:about="[% Param('urlbase') %]version.cgi?name=[% version.name FILTER uri %]">
+            <bz:version rdf:about="[% urlbase FILTER xml %]version.cgi?name=[% version.name FILTER uri %]">
               <bz:name>[% version.name FILTER html %]</bz:name>
             </bz:version>
           </li>
         [% FOREACH product = products %]
           [% FOREACH milestone = product.milestones %]
             <li>
-              <bz:target_milestone rdf:about="[% Param('urlbase') %]milestone.cgi?name=[% milestone.name FILTER uri %]">
+              <bz:target_milestone rdf:about="[% urlbase FILTER xml %]milestone.cgi?name=[% milestone.name FILTER uri %]">
                 <bz:name>[% milestone.name FILTER html %]</bz:name>
               </bz:target_milestone>
             </li>
       [% PROCESS "global/field-descs.none.tmpl" %]
       [% FOREACH item = field %]
         <li>
-          <bz:field rdf:about="[% Param('urlbase') %]field.cgi?name=[% item.name FILTER uri %]">
+          <bz:field rdf:about="[% urlbase FILTER xml %]field.cgi?name=[% item.name FILTER uri %]">
             <bz:name>[% item.name FILTER html %]</bz:name>
             <bz:description>[% (field_descs.${item.name} OR item.description) FILTER html %]</bz:description>
           </bz:field>
index cbe162ed39d8965f4b1271d97242080e993a443e..ba24dc1dd260e138ffea6bf91d0454fca606dc3a 100644 (file)
@@ -38,12 +38,12 @@ X-Bugzilla-Target-Milestone: [% targetmilestone %]
 X-Bugzilla-Changed-Fields: [% changedfields %]
 [%+ threadingmarker %]
 
-[%+ Param('urlbase') %]show_bug.cgi?id=[% bugid %]
+[%+ urlbase %]show_bug.cgi?id=[% bugid %]
 
 [%+ diffs %]
 
 -- 
-Configure bugmail: [% Param('urlbase') %]userprefs.cgi?tab=email
+Configure bugmail: [% urlbase %]userprefs.cgi?tab=email
 ------- You are receiving this mail because: -------
 [% FOREACH relationship = reasons %]
   [% SWITCH relationship %]
index fd5b9151bbc752d543ea1719985a093f529f381d..97b1c0cd14726f8a5951044a416ce3395d45075f 100644 (file)
@@ -25,7 +25,7 @@ To: [% addressee %]
 Subject: [[% terms.Bugzilla %]] Sanity Check Results
 X-Bugzilla-Type: sanitycheck
 
-[%+ Param('urlbase') %]sanitycheck.cgi
+[%+ urlbase %]sanitycheck.cgi
 
 Below can you read the sanity check results.
 [% IF error_found %]
index 758c67b0294e4605d90b026e56e20141b6ebb96e..0c01bef4f5b089f45dd358af2479517a35136360 100644 (file)
@@ -41,4 +41,4 @@ X-Bugzilla-Type: admin
 
     If you feel that this action was inappropiate, please contact 
 [%+ Param("maintainer") %].  For more information on this feature, 
-visit <[% Param("urlbase") %]page.cgi?id=sudo.html>.
+visit <[% urlbase %]page.cgi?id=sudo.html>.
index 6bf2afd8c3136961c5da0fbba8e470e1ffdec37c..69ad2b96272baf4c2755d6618730b57690305da5 100644 (file)
@@ -35,5 +35,5 @@ Some or all of your votes have been removed from [% terms.bug %] [%+ bugid %].
 Reason: [% reason %]
 
 
-[% Param("urlbase") %]show_bug.cgi?id=[% bugid %]
+[% urlbase %]show_bug.cgi?id=[% bugid %]
 
index 764b581e83b561b3a7c5943e9a173ecfcc3ebf7c..57f2d13c503adf7be8f2c1179c97e8e25cff81e9 100644 (file)
@@ -28,7 +28,7 @@ X-Bugzilla-Type: whine
 [This e-mail has been automatically generated.]
 
 You have one or more [% terms.bugs %] assigned to you in the [% terms.Bugzilla %] 
-[% terms.bug %] tracking system ([% Param("urlbase") %]) that require
+[% terms.bug %] tracking system ([% urlbase %]) that require
 attention.
 
 All of these [% terms.bugs %] are in the [% get_status("NEW") %] or
@@ -50,10 +50,10 @@ Generally, this means one of three things:
 To get a list of all [% get_status("NEW") %]/[% get_status("REOPENED") %] [%+ terms.bugs %], you can use this URL (bookmark
 it if you like!):
 
- [% Param("urlbase") %]buglist.cgi?bug_status=NEW&bug_status=REOPENED&assigned_to=[% email %]
+ [% urlbase %]buglist.cgi?bug_status=NEW&bug_status=REOPENED&assigned_to=[% email %]
 
 Or, you can use the general query page, at 
-[%+ Param("urlbase") %]query.cgi
+[%+ urlbase %]query.cgi
 
 Appended below are the individual URLs to get to all of your [% get_status("NEW") %] [%+ terms.bugs %]
 that haven't been touched for a week or more.
@@ -62,5 +62,5 @@ You will get this message once a day until you've dealt with these [% terms.bugs
 
 [% FOREACH bug = bugs %]
  [%+ bug.summary %]
-    -> [% Param("urlbase") %]show_bug.cgi?id=[% bug.id %]
+    -> [% urlbase %]show_bug.cgi?id=[% bug.id %]
 [% END %]
index ad1df396d18235bf2be154d7d58352243c02080f..ea64c362f6db6e98f55987cd8d40d72a8cf94857 100644 (file)
   #%]
 
   <body onload="[% onload %]"
-        class="[% Param('urlbase').replace('^https?://','').replace('/$','').replace('[-~@:/.]+','-') %]
+        class="[% urlbase.replace('^https?://','').replace('/$','').replace('[-~@:/.]+','-') %]
                [% FOREACH class = bodyclasses %]
                  [% ' ' %][% class FILTER css_class_quote %]
                [% END %]">
index 507b779c8479e929734ffc0d52ecd951d1bc76a1..64d91a30c831feb6317f5f8f779e72bc833fc3d9 100644 (file)
@@ -31,7 +31,7 @@
 [% cgi = Bugzilla.cgi %]
 
 [% IF NOT (cgi.user_agent("MSIE [1-6]") OR cgi.user_agent("Mozilla/4")) %]
-  <link rel="Top" href="[% Param('urlbase') %]">
+  <link rel="Top" href="[% urlbase FILTER html %]">
 
   [%# *** Bug List Navigation *** %]
   [% IF bug && bug_list && bug_list.size > 0 %]
index d7c74e18801bb0360f24f41a4bc7f80b4eb1d13f..132b77c745b759593f297a319d26aff166251f2e 100644 (file)
@@ -46,7 +46,7 @@ function addSidebar() {
     var sidebarname=window.location.host;
     if (!/bug/i.test(sidebarname))
       sidebarname="[% terms.Bugzilla %] "+sidebarname;
-    window.sidebar.addPanel (sidebarname, "[% Param('urlbase') %]sidebar.cgi", "");
+    window.sidebar.addPanel (sidebarname, "[% urlbase FILTER html %]sidebar.cgi", "");
   }
   else
   {
@@ -129,7 +129,7 @@ function addSidebar() {
 [% END %]
     <li id="sidebar"><a href="javascript:addSidebar()">Add to Sidebar</a> (requires a Mozilla browser like Mozilla Firefox)</li>
     <li id="quick_search_plugin">
-      <a href="javascript:window.external.AddSearchProvider('[% Param('urlbase') %]search_plugin.cgi')">Install
+      <a href="javascript:window.external.AddSearchProvider('[% urlbase FILTER html %]search_plugin.cgi')">Install
       the Quick Search plugin</a> (requires Firefox 2 or Internet Explorer 7)
     </li>
 
index 8494baf6078cf01e7124320b1ec642a771d29305..60f1a4f3ab645f5c934f9416a5c5373dfb61a690 100644 (file)
@@ -39,7 +39,7 @@
 
   <head>
     <title>[% title FILTER html %]</title>
-    <base href="[% Param("urlbase") %]">
+    <base href="[% urlbase FILTER html %]">
     <link href="skins/standard/buglist.css" rel="stylesheet" type="text/css">
   </head>
 
index 630f046385b85ffa2e01f4e4e33bd368daa42966..cf9b8080ebb9eeeb72c436efc2601acd47b17e8e 100644 (file)
 <feed xmlns="http://www.w3.org/2005/Atom">
   <title>[% title FILTER xml %]</title>
   <link rel="alternate" type="text/html"
-        href="[% Param('urlbase') %]buglist.cgi?
+        href="[% urlbase FILTER html %]buglist.cgi?
         [%- urlquerypart.replace('ctype=atom[&]?','') FILTER xml %]"/>
   <link rel="self" type="application/atom+xml"
-        href="[% Param('urlbase') %]buglist.cgi?
+        href="[% urlbase FILTER html %]buglist.cgi?
         [%- urlquerypart FILTER xml %]"/>
   <updated>[% date.format(format=>"%Y-%m-%dT%H:%M:%SZ",
               time=>bugs.nsort('changedtime').last.changedtime,
               gmt=>1) FILTER xml %]</updated>
-  <id>[% Param('urlbase') %]buglist.cgi?[% urlquerypart FILTER xml %]</id>
+  <id>[% urlbase FILTER html %]buglist.cgi?[% urlquerypart FILTER xml %]</id>
 
   [% FOREACH bug = bugs %]
   <entry>
     <title>[% "@" IF bug.secure_mode %][[% terms.Bug %] [%+ bug.bug_id FILTER xml %]] [% bug.short_desc FILTER xml %]</title>
     <link rel="alternate" type="text/html"
-          href="[% Param('urlbase') FILTER xml %]show_bug.cgi?id=
+          href="[% urlbase FILTER html %]show_bug.cgi?id=
           [%- bug.bug_id FILTER xml %]"/>
-    <id>[% Param('urlbase') FILTER xml %]show_bug.cgi?id=[% bug.bug_id FILTER xml %]</id>
+    <id>[% urlbase FILTER xml %]show_bug.cgi?id=[% bug.bug_id FILTER xml %]</id>
     <author>
       <name>[% bug.reporter_realname FILTER xml %]</name>
     </author>
index 814a397aaedabe5950c1383c023ddef02ffc3c0c..6eb9ed731d336b993eabdbb0b4e0a7cb4c0a3678 100644 (file)
@@ -27,8 +27,8 @@ VERSION:2.0
 BEGIN:VTODO
 [%+ PROCESS ics_dtstart +%]
 [%+ PROCESS ics_summary +%]
-[%+ PROCESS ics_uid base_url=Param('urlbase') bug_id=bug.bug_id +%]
-[%+ PROCESS ics_url base_url=Param('urlbase') bug_id=bug.bug_id +%]
+[%+ PROCESS ics_uid base_url=urlbase bug_id=bug.bug_id +%]
+[%+ PROCESS ics_url base_url=urlbase bug_id=bug.bug_id +%]
 [%+ PROCESS ics_status bug_status = bug.bug_status +%]
 [%+ PROCESS ics_dtstamp +%]
 [% IF bug.changeddate %]
index 06376aca9923517f2bb8993ccd0bfc144c16c46d..dfba7cb1660d3479e9128a9cb14de4fdb9238e17 100644 (file)
      xmlns:bz="http://www.bugzilla.org/rdf#"
      xmlns:nc="http://home.netscape.com/NC-rdf#">
 
-<bz:result rdf:about="[% Param('urlbase') %]buglist.cgi?[% urlquerypart FILTER html %]">
-  <bz:installation rdf:resource="[% Param('urlbase') %]" />
+<bz:result rdf:about="[% urlbase FILTER xml %]buglist.cgi?[% urlquerypart FILTER html %]">
+  <bz:installation rdf:resource="[% urlbase FILTER xml %]" />
   <bz:bugs>
     <Seq>
     [% FOREACH bug = bugs %]
       <li>
         
-        <bz:bug rdf:about="[% Param('urlbase') %]show_bug.cgi?id=[% bug.bug_id %]">
+        <bz:bug rdf:about="[% urlbase FILTER xml %]show_bug.cgi?id=[% bug.bug_id %]">
           
           <bz:id nc:parseType="Integer">[% bug.bug_id %]</bz:id>
         
index 15594c7ca69c88cabfca6e2a1f56cb1f42fbd495..beb95f186bd929a1122392146b902c63f0c8cdef 100644 (file)
      xmlns:bz="http://www.bugzilla.org/rdf#"
      xmlns:nc="http://home.netscape.com/NC-rdf#">
 
-<bz:duplicates_report rdf:about="[% Param('urlbase') %]data/duplicates.rdf">
+<bz:duplicates_report rdf:about="[% urlbase FILTER xml %]data/duplicates.rdf">
   <bz:bugs>
     <Seq>
       [% FOREACH bug = bugs %]
         <li>
-          <bz:bug rdf:about="[% Param('urlbase') %]show_bug.cgi?id=[% bug.id %]">
+          <bz:bug rdf:about="[% urlbase FILTER xml %]show_bug.cgi?id=[% bug.id %]">
             <bz:id nc:parseType="Integer">[% bug.id %]</bz:id>
             <bz:resolution>[% bug.resolution FILTER html %]</bz:resolution>
             <bz:duplicate_count nc:parseType="Integer">[% bug.count %]</bz:duplicate_count>
index a5fd17b88317997702233282e83ff3c32aec7801..1a20a4115a07d7fcc319ded7dc45cad3f39a0f1b 100644 (file)
@@ -50,13 +50,13 @@ X-Bugzilla-Type: request
 
 [% terms.Bug %] [%+ bugidsummary %]
 [% END %]
-[%+ Param('urlbase') %]show_bug.cgi?id=[% bug.bug_id %]
+[%+ urlbase %]show_bug.cgi?id=[% bug.bug_id %]
 [% IF attachment %]
 
 [% FILTER bullet = wrap(80) %]
 Attachment [% attidsummary %]
 [%- END %]
-[%+ Param('urlbase') %]attachment.cgi?id=[% attachment.id %]&action=edit
+[%+ urlbase %]attachment.cgi?id=[% attachment.id %]&action=edit
 [%- END %]
 [%- FILTER bullet = wrap(80) %]
 
index 649c6e95877a8fd20afc190bf9f23b0fec2bfade..804c154713e0c683647aea5096a285779f28f6a6 100644 (file)
@@ -21,8 +21,8 @@
 <Description>[% terms.Bugzilla %] Quick Search</Description>
 <InputEncoding>UTF-8</InputEncoding>
 <Image width="16" height="16">data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABGdBTUEAAK%2FINwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAALBSURBVHjaYnxckcEAA3%2F%2B%2FT%2F17LUcH%2Fevf%2F8U%2BHmYGBkZMABAALEgc%2B68%2F3T227cf2tJKKhJLt59n%2FfmbnYnZV1KEhYkJrgYggBghNrz78fPIi3d8uvKBIdb%2FOaWPnzitLc97%2Bc5rFXnhnVO3%2BslLwjUABBDIhnsfPl%2Fj53VO91FX4Gfgkjxw%2Fd%2F6Q49%2FWStqyAj%2B%2B88gZqn%2B9u5rYU52iAaAAGL69%2F%2F%2F2d9%2FYiMclGT4fv76%2BZ9DbO%2FeA39%2BfJHVcvj5l%2Bnh03e%2FWThOvnwLtwEgAAAxAM7%2FBPj8%2FRYkHQYHAf3%2F%2Fv%2F%2B%2Fv8BAVNTUPX18yorLNHE2S8mB%2FT2%2Bq7a4dvu8iUSDgAAAAKICRgUv3%2F8ZGKGeIvpz6eXBvq61lZWLMwMv%2F5zMP7%2FqSAjVFyZ%2FNvZftuT10DnAAQAMQDO%2FwQIBAPz5Or6%2Ff0CBQEAAgT99ubq38z2%2BwT18%2FAM%2F%2BkNDAv6%2FQMCAA1GVVrhMze5h4kCCORpkd9%2F3n74KiHO%2B%2BffX8b%2Ff7m%2BXWP985%2Bf5R%2BPLNdfoK%2F%2F%2Ffv39%2BePj2%2FkZYR0fe0BAgikQZGX%2B9b9FzLS%2FH%2F%2B%2FGVgYGRlZWNlA7nv7z9QuDP8%2B8nw%2FRXjn68Mv4Gu%2FAwQQCCni3FxPLn7nIGZGegfNhYmNjYWZnBMASOakZER6Eumf9%2FYGT4y%2FHx%2F%2BfBFgAAC2cDGzPT99WeGvwzvv%2Fx89vrr%2F39%2FJER4pcT5Gf4z%2FP37D2jtj9%2B%2FL918fmzrKSsWNoAAgiaN%2Fz9%2Fff%2F6S4CP8%2BWbz9vWHfv54aukpAAz0Og%2Ff%2F7%2F%2Bs36668cO3ugED9QJUAAQTUArf7%2F8x87D9vRjcejhPiZhAUYcACAAGI5%2FOHH9ddvXzAxmjz%2B8P8lw4fXn5l4eRlwA4AAYmaTkBFg%2FKvJwfbkwZuXN57y%2Fv%2F34stXGR4uRmxpGwgAAgwA4%2FkfrfCWvLQAAAAASUVORK5CYII%3D</Image>
-<Url type="text/html" method="GET" template="[% Param('urlbase') %]buglist.cgi">
+<Url type="text/html" method="GET" template="[% urlbase FILTER xml %]buglist.cgi">
   <Param name="quicksearch" value="{searchTerms}"/>
 </Url>
-<SearchForm>[% Param('urlbase') %]</SearchForm>
+<SearchForm>[% urlbase FILTER xml %]</SearchForm>
 </OpenSearchDescription>
index 6742889da1d1ed3525683519d60916473b1718cb..e2d0d8e22e044fcfa1d79cc9786e774491d649d7 100644 (file)
@@ -26,7 +26,7 @@
 
 <?xml version="1.0"?>
 <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
-<?xml-stylesheet href="[% Param('urlbase') %]skins/standard/panel.css" type="text/css"?>
+<?xml-stylesheet href="[% urlbase FILTER xml %]skins/standard/panel.css" type="text/css"?>
 <window
   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
   xmlns:html="http://www.w3.org/1999/xhtml"
@@ -40,7 +40,7 @@ function load_absolute_url( aAbsoluteURL ) {
 }
 
 function load_relative_url( aRelativeURL ) {
-    aRelativeURL = '[% Param('urlbase') %]' + aRelativeURL;
+    aRelativeURL = '[% urlbase FILTER xml %]' + aRelativeURL;
     _content.location = aRelativeURL;
 }
 
@@ -125,7 +125,7 @@ function normal_keypress_handler( aEvent ) {
   <box orient="horizontal">
     <spring flex="1"/>
     <html align="right">
-      <html:a class="text-link" href="[% Param('urlbase') %]sidebar.cgi">reload</html:a>
+      <html:a class="text-link" href="[% urlbase FILTER xml %]sidebar.cgi">reload</html:a>
     </html>
   </box>
 </window>
index 0d7f91911d7a4801f616bb58dfa134a608a97ef2..a3953afeb4a1d0bef5b6eb239490827a412824c5 100644 (file)
@@ -51,7 +51,7 @@
 
     <p align="left">
       [% IF author.login == recipient.login %]
-        <a href="[%+ Param('urlbase') FILTER html %]editwhines.cgi">Click
+        <a href="[%+ urlbase FILTER html %]editwhines.cgi">Click
             here to edit your whine schedule</a>
       [% ELSE %]
         This search was scheduled by [% author.login FILTER html %].
@@ -77,7 +77,7 @@
 
     [% FOREACH bug=query.bugs %]
       <tr>
-        <td align="left"><a href="[%+ Param('urlbase') FILTER html %]show_bug.cgi?id=
+        <td align="left"><a href="[%+ urlbase FILTER html %]show_bug.cgi?id=
             [%- bug.bug_id %]">[% bug.bug_id %]</a></td>
         <td align="left">[% bug.bug_severity FILTER html %]</td>
         <td align="left">[% bug.priority FILTER html %]</td>
index 02078b7bd0e4d73ab3de85badc787a629e781262..351452114180f9ad0298ad53e3b89e95fa2d9891 100644 (file)
@@ -40,7 +40,7 @@
 
 [% IF author.login == recipient.login %]
   To edit your whine schedule, visit the following URL:
-  [%+ Param('urlbase') %]editwhines.cgi
+  [%+ urlbase %]editwhines.cgi
 [% ELSE %]
   This search was scheduled by [% author.login %].
 [% END %]
@@ -53,7 +53,7 @@
 
  [% FOREACH bug=query.bugs %]
   [% terms.Bug +%] [%+ bug.bug_id %]:
-  [%+ Param('urlbase') %]show_bug.cgi?id=[% bug.bug_id +%]
+  [%+ urlbase %]show_bug.cgi?id=[% bug.bug_id +%]
   Priority: [%+ bug.priority -%]
   Severity: [%+ bug.bug_severity -%]
   Platform: [%+ bug.rep_platform %]