summaryrefslogtreecommitdiff
path: root/rt/html/autohandler
diff options
context:
space:
mode:
authorivan <ivan>2009-12-18 00:41:34 +0000
committerivan <ivan>2009-12-18 00:41:34 +0000
commit2dfda73eeb3eae2d4f894099754794ef07d060dd (patch)
tree5486a76d4557f05ed1420da42ec4edbe5b748f04 /rt/html/autohandler
parent8103c1fc1b2c27a6855feadf26f91b980a54bc52 (diff)
import rt 3.6.10
Diffstat (limited to 'rt/html/autohandler')
-rw-r--r--rt/html/autohandler12
1 files changed, 6 insertions, 6 deletions
diff --git a/rt/html/autohandler b/rt/html/autohandler
index 909b922..57ab22a 100644
--- a/rt/html/autohandler
+++ b/rt/html/autohandler
@@ -2,7 +2,7 @@
%#
%# COPYRIGHT:
%#
-%# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC
%# <jesse@bestpractical.com>
%#
%# (Except where explicitly superseded by other copyright notices)
@@ -24,7 +24,7 @@
%# along with this program; if not, write to the Free Software
%# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
%# 02110-1301 or visit their web page on the internet at
-%# http://www.gnu.org/copyleft/gpl.html.
+%# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
%#
%#
%# CONTRIBUTION SUBMISSION POLICY:
@@ -72,13 +72,13 @@ if ( $m->request_comp->attr_exists('AutoFlush') ) {
( !$type )
? Encode::is_utf8($_)
? $_
- : Encode::decode( utf8 => $_, Encode::FB_PERLQQ )
+ : Encode::decode( 'UTF-8' => $_, Encode::FB_PERLQQ )
: ( $type eq 'ARRAY' )
? [
map {
( ref($_) or Encode::is_utf8($_) )
? $_
- : Encode::decode( utf8 => $_, Encode::FB_PERLQQ )
+ : Encode::decode( 'UTF-8' => $_, Encode::FB_PERLQQ )
} @$_
]
: ( $type eq 'HASH' )
@@ -86,7 +86,7 @@ if ( $m->request_comp->attr_exists('AutoFlush') ) {
map {
( ref($_) or Encode::is_utf8($_) )
? $_
- : Encode::decode( utf8 => $_, Encode::FB_PERLQQ )
+ : Encode::decode( 'UTF-8' => $_, Encode::FB_PERLQQ )
} %$_
}
: $_
@@ -280,7 +280,7 @@ if ( ( defined $session{'CurrentUser'} )
}
# otherwise, drop the user at the SelfService default page
- elsif ( $m->base_comp->path !~ '^(/+)SelfService/' ) {
+ elsif ( $m->base_comp->path !~ $RT::SelfServiceRegex ) {
RT::Interface::Web::Redirect($RT::WebURL."SelfService/");
}
else {