From ee397a03f178b41602c1506fb71d3e76b883201e Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 30 Jan 2008 15:45:39 +0000 Subject: [PATCH] Made it unicode save git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8674 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/GosaSupportDaemon.pm | 5 ++++- gosa-si/tests/client.php | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 -- 2.30.2