X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=contrib%2Fdecrypt_headers.php;h=a0bf03559c0becf24287fd1bf87fa1b3730eab50;hp=a8d7ff1dc800b0b5f08dfc211a4146a251687d67;hb=6872a6750379b6c17cf6a6dfec6150ade78f52a0;hpb=d4e46166df04792c6b939356ea5dfda8e47bba7b diff --git a/contrib/decrypt_headers.php b/contrib/decrypt_headers.php index a8d7ff1d..a0bf0355 100644 --- a/contrib/decrypt_headers.php +++ b/contrib/decrypt_headers.php @@ -3,7 +3,7 @@ /** * Script provides form to decode encrypted header information. * - * @copyright © 2005-2009 The SquirrelMail Project Team + * @copyright 2005-2018 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -60,23 +60,30 @@ echo 'You must enter encryption key.
\n"; + empty($secret)) { + $continue = FALSE; + echo "You must enter an encryption key.
\n"; + } if (! sqgetGlobalVar('enc_string',$enc_string,SQ_POST) || - empty($enc_string)) - echo "You must enter encrypted string.
\n"; + empty($enc_string)) { + $continue = FALSE; + echo "You must enter an encrypted string.
\n"; + } - if (isset($enc_string) && ! base64_decode($enc_string)) { - echo "Encrypted string should be BASE64 encoded.
\n"
- ."Please enter all characters that are listed after header name.
Encrypted string should be BASE64 encoded.
\n"
+ ."Please enter all characters that are listed after header name.
Decoded string: ".htmlspecialchars($string)."
\n"; } - echo "Decoded string: ".$string."
\n"; } echo "
Secret key:
Encrypted string:
-Check, if it is an address string:
+