summaryrefslogtreecommitdiffstats
path: root/globals.pl
diff options
context:
space:
mode:
authorgerv%gerv.net <>2002-04-25 03:25:49 +0200
committergerv%gerv.net <>2002-04-25 03:25:49 +0200
commite0abf5a6e9bc24ddda2b38d260859192a6bbbc3a (patch)
tree6b4474964be2195b24b879ecdbaf8b3836fe0c4b /globals.pl
parentc61b13b2ce5e7a980ea338df23a6dcccede84f37 (diff)
downloadbugzilla-e0abf5a6e9bc24ddda2b38d260859192a6bbbc3a.tar.gz
bugzilla-e0abf5a6e9bc24ddda2b38d260859192a6bbbc3a.tar.xz
Bug 136180 - use uri/url_quote filters correctly. Patch by ddk; 2xr=gerv.
Diffstat (limited to 'globals.pl')
-rw-r--r--globals.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/globals.pl b/globals.pl
index 2b9434738..ced8b4f87 100644
--- a/globals.pl
+++ b/globals.pl
@@ -1616,6 +1616,13 @@ $::template ||= Template->new(
} ,
html => \&html_quote ,
+
+ # This subroutine in CGI.pl escapes characters in a variable
+ # or value string for use in a query string. It escapes all
+ # characters NOT in the regex set: [a-zA-Z0-9_\-.]. The 'uri'
+ # filter should be used for a full URL that may have
+ # characters that need encoding.
+ url_quote => \&url_quote ,
} ,
}
) || DisplayError("Template creation failed: " . Template->error())