[otrs-cvs] otrs/Kernel/System/Crypt PGP.pm,1.24,1.25
cvs-log at otrs.org
cvs-log at otrs.org
Tue Apr 1 10:41:25 GMT 2008
Comments:
Update of /home/cvs/otrs/Kernel/System/Crypt
In directory lancelot:/tmp/cvs-serv28569/Kernel/System/Crypt
Modified Files:
PGP.pm
Log Message:
* Fixed bug#2575 - trying to PGP::Crypt() utf8-character-strings
no longer bails, but simply auto-converts the string into an utf8-byte-string,
such that the correct data is written into the temp file.
* Fixed typo in date of most recent entry in CHANGES
Author: ot
Index: PGP.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/Crypt/PGP.pm,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** PGP.pm 25 Jan 2008 12:07:34 -0000 1.24
--- PGP.pm 1 Apr 2008 10:41:20 -0000 1.25
***************
*** 102,108 ****
}
! # TODO; this check *must* be removed once OTRS is using UTF8 as native encoding!
if (utf8::is_utf8($Param{Message})) {
! die 'Crypt() is unable to handle UTF8-string - pass in binary octets or ISO-string!';
}
--- 102,109 ----
}
! # since the following write would auto-convert utf8-characters into iso-characters, we
! # avoid that by explicitly encoding utf8-strings:
if (utf8::is_utf8($Param{Message})) {
! utf8::encode($Param{Message});
}
More information about the cvs-log
mailing list