X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=contrib%2Fdecrypt_headers.php;h=0874e060c3571618ec035ab160cfb486aea4df28;hb=466abb9c6e2d59218590a4733bde321b6e20c2f8;hp=88f8e3868cb194ade583e0ef412556a3b613b50b;hpb=94511d239551fa56b44eb26b5cfc9dd83324438b;p=squirrelmail.git diff --git a/contrib/decrypt_headers.php b/contrib/decrypt_headers.php index 88f8e386..0874e060 100644 --- a/contrib/decrypt_headers.php +++ b/contrib/decrypt_headers.php @@ -1,24 +1,10 @@ ' +echo '' ."\n
\n\n" .""; if (sqgetGlobalVar('submit',$submit,SQ_POST)) { + $continue = TRUE; if (! sqgetGlobalVar('secret',$secret,SQ_POST) || - empty($secret)) - 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 "