projects
/
shipsimu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec3f744
)
Assertion added to crypto helper (CAPTCHA might still be broken, why?)
author
Roland Häder
<roland@mxchange.org>
Mon, 27 Oct 2008 07:41:36 +0000
(07:41 +0000)
committer
Roland Häder
<roland@mxchange.org>
Mon, 27 Oct 2008 07:41:36 +0000
(07:41 +0000)
inc/classes/main/crypto/class_CryptoHelper.php
patch
|
blob
|
history
diff --git
a/inc/classes/main/crypto/class_CryptoHelper.php
b/inc/classes/main/crypto/class_CryptoHelper.php
index 2ebafd8ed9c9dfdeffcda10ef4473645e620ccbc..1ccdaae901b0712c8644e6001b8de53598cd050d 100644
(file)
--- a/
inc/classes/main/crypto/class_CryptoHelper.php
+++ b/
inc/classes/main/crypto/class_CryptoHelper.php
@@
-241,6
+241,11
@@
class CryptoHelper extends BaseFrameworkSystem implements Cryptable {
// Get the real string out
$strArray = explode("|", $garbageString);
// Get the real string out
$strArray = explode("|", $garbageString);
+
+ // Does the element count match?
+ assert(count($strArray) == 3);
+
+ // Decode the string
$str = base64_decode($strArray[1]);
// Trim trailing nulls away
$str = base64_decode($strArray[1]);
// Trim trailing nulls away