[vhffs-dev] [1036] yet another UTF8 fixes |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1036
Author: gradator
Date: 2007-10-26 22:11:54 +0000 (Fri, 26 Oct 2007)
Log Message:
-----------
yet another UTF8 fixes
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Panel/Object.pm
trunk/vhffs-panel/admin/object/edit_submit.pl
Modified: trunk/vhffs-api/src/Vhffs/Panel/Object.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Object.pm 2007-10-26 20:21:23 UTC (rev 1035)
+++ trunk/vhffs-api/src/Vhffs/Panel/Object.pm 2007-10-26 22:11:54 UTC (rev 1036)
@@ -44,9 +44,6 @@
use Vhffs::User;
use Vhffs::Main;
use Vhffs::Object;
-use Vhffs::Acl;
-use Vhffs::Services::Cvs;
-use Vhffs::Panel::Main;
use Vhffs::Constants;
sub search
@@ -213,8 +210,7 @@
my $subtemplate = new HTML::Template( filename => $templatedir.'/panel/misc/history_part.tmpl' );
use DateTime;
use DateTime::Locale;
- use Encode;
- $subtemplate->param( DATE => Encode::encode_utf8( DateTime->from_epoch( epoch => $history->{$_}{date} , locale => $user->get_lang )->strftime("%a, %d %b %Y %H:%M:%S %z") ) );
+ $subtemplate->param( DATE => DateTime->from_epoch( epoch => $history->{$_}{date} , locale => $user->get_lang )->strftime("%a, %d %b %Y %H:%M:%S %z") );
$subtemplate->param( EVENT => $history->{$_}{message} );
$output .= $subtemplate->output;
}
Modified: trunk/vhffs-panel/admin/object/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/object/edit_submit.pl 2007-10-26 20:21:23 UTC (rev 1035)
+++ trunk/vhffs-panel/admin/object/edit_submit.pl 2007-10-26 22:11:54 UTC (rev 1036)
@@ -38,8 +38,8 @@
use CGI;
use CGI::Session;
use strict;
+use Encode;
-
use lib '%VHFFS_LIB_DIR%';
use Vhffs::User;
use Vhffs::Group;
@@ -62,7 +62,7 @@
my $cgi = $panel->{'cgi'};
my $oid = $cgi->param("OID");
my $status = $cgi->param("STATUS");
-my $description = $cgi->param('description');
+my $description = Encode::decode_utf8( $cgi->param('description') );
my $object;