projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89187d3
)
Don't encrypt/decrypt empty messages.
author
Jan Schneider
<jan@horde.org>
Tue, 6 Jul 2010 22:34:22 +0000
(
00:34
+0200)
committer
Jan Schneider
<jan@horde.org>
Tue, 6 Jul 2010 22:51:52 +0000
(
00:51
+0200)
framework/Secret/lib/Horde/Secret.php
patch
|
blob
|
history
diff --git
a/framework/Secret/lib/Horde/Secret.php
b/framework/Secret/lib/Horde/Secret.php
index
6675daf
..
41f400a
100644
(file)
--- a/
framework/Secret/lib/Horde/Secret.php
+++ b/
framework/Secret/lib/Horde/Secret.php
@@
-70,7
+70,7
@@
class Horde_Secret
*/
public function write($key, $message)
{
- $val = strlen($key)
+ $val = strlen($key)
&& strlen($message)
? $this->_getCipherOb($key)->encrypt($message)
: '';
@@
-92,7
+92,7
@@
class Horde_Secret
*/
public function read($key, $ciphertext)
{
- $val = strlen($key)
+ $val = strlen($key)
&& strlen($ciphertext)
? $this->_getCipherOb($key)->decrypt($ciphertext)
: '';