From: cajus Date: Wed, 30 Jan 2008 15:45:39 +0000 (+0000) Subject: Made it unicode save X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee397a03f178b41602c1506fb71d3e76b883201e;p=gosa.git Made it unicode save git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8674 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/GosaSupportDaemon.pm b/gosa-si/modules/GosaSupportDaemon.pm index 496ce8d4e..571d5008b 100644 --- a/gosa-si/modules/GosaSupportDaemon.pm +++ b/gosa-si/modules/GosaSupportDaemon.pm @@ -199,7 +199,10 @@ sub create_xml_string { sub encrypt_msg { my ($msg, $my_cipher) = @_; if(not defined $my_cipher) { print "no cipher object\n"; } - $msg = "\0"x(16-length($msg)%16).$msg; + { + use bytes; + $msg = "\0"x(16-length($msg)%16).$msg; + } $msg = $my_cipher->encrypt($msg); chomp($msg = &encode_base64($msg)); diff --git a/gosa-si/tests/client.php b/gosa-si/tests/client.php index b1231b04a..cb4befec5 100755 --- a/gosa-si/tests/client.php +++ b/gosa-si/tests/client.php @@ -17,7 +17,7 @@ if($sock->connected()){ /* Prepare a hunge bunch of data to be send */ # add -#$data = "
job_ping
10.89.1.155:2008300:1B:77:04:8A:6C 19700101000001
"; +$data = "
job_ping
10.89.1.155:2008300:1B:77:04:8A:6C 19700101000001
"; #$data = "
job_sayHello
10.89.1.155:2008300:1B:77:04:8A:6C 20130102133900
"; #$data = "
job_ping
10.89.1.155:2008300:1B:77:04:8A:6C 20130102133900
"; @@ -31,7 +31,7 @@ if($sock->connected()){ #$data = "
gosa_query_jobdb
andgt0le5
"; #$data= "
gosa_query_jobdb
ping03
"; #$data= "
gosa_query_jobdb
ping05timestamp
"; -$data= "
gosa_query_jobdb
"; +#$data= "
gosa_query_jobdb
"; # count