mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-25 15:29:17 +01:00
fix from Shain Tancheff
This commit is contained in:
parent
61482e0a19
commit
b2b8bd3512
@ -100,6 +100,7 @@
|
|||||||
|
|
||||||
/* Hack IV to be the correct size */
|
/* Hack IV to be the correct size */
|
||||||
$x = strlen($iv);
|
$x = strlen($iv);
|
||||||
|
$this->iv = '';
|
||||||
for($i = 0; $i < $ivsize; $i++)
|
for($i = 0; $i < $ivsize; $i++)
|
||||||
{
|
{
|
||||||
$this->iv .= $iv[$i % $x];
|
$this->iv .= $iv[$i % $x];
|
||||||
@ -107,7 +108,7 @@
|
|||||||
|
|
||||||
/* Hack Key to be the correct size */
|
/* Hack Key to be the correct size */
|
||||||
$x = strlen($key);
|
$x = strlen($key);
|
||||||
|
$this->key = '';
|
||||||
for($i = 0; $i < $keysize; $i++)
|
for($i = 0; $i < $keysize; $i++)
|
||||||
{
|
{
|
||||||
$this->key .= $key[$i % $x];
|
$this->key .= $key[$i % $x];
|
||||||
|
Loading…
Reference in New Issue
Block a user