From e0abf5a6e9bc24ddda2b38d260859192a6bbbc3a Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Thu, 25 Apr 2002 01:25:49 +0000 Subject: Bug 136180 - use uri/url_quote filters correctly. Patch by ddk; 2xr=gerv. --- globals.pl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'globals.pl') 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()) -- cgit v1.2.1