ID:               24511
 Updated by:       [EMAIL PROTECTED]
 Reported By:      timon dot roth at bluewin dot ch
-Status:           Open
+Status:           Bogus
 Bug Type:         CGI related
 Operating System: Linux SUE 8.2
 PHP Version:      5.0.0b1 (beta1)
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

.


Previous Comments:
------------------------------------------------------------------------

[2003-07-06 06:13:10] timon dot roth at bluewin dot ch

Description:
------------
the Variable $PHP_SELF is unknown in a CGI-Script, even if register
globals is on.

simple Variablenames are unknown like $txt.
when i call them $_POST[txt] it is there.

-------------------------

<?php
echo "<pre>der Text - $_POST[txt] - mit CRYPT_STD_DES lautet: " .
CRYPT($_POST[txt],CRYPT_STD_DES)."<br>";
echo "der Text - $_POST[txt] - mit MD5 lautet: " .
md5($_POST[txt])."<br>";
echo "der Text - $_POST[txt] - mit CRYPT_EXT_DES lautet: " .
CRYPT($_POST[txt],CRYPT_EXT_DES)."<br>";
echo "der Text - $_POST[txt] - mit CRYPT_MD5 lautet: " .
CRYPT($_POST[txt],CRYPT_MD5)."<br>";
echo "der Text - $_POST[txt] - mit CRYPT_BLOWFISH lautet: " .
CRYPT($_POST[txt],CRYPT_BLOWFISH)."<br></pre>";
echo base64_decode($_POST[txt]);
?>

<html>
<head>
</head>
<body>
<form action="<?php echo $PHP_SELF; ?>" method="post">

<INPUT TYPE="TEXT">
<textarea name="txt"></textarea>
<input type="submit" value="send">
</form>
</body>

</html>

Reproduce code:
---------------
<pre>der Text -  - mit CRYPT_STD_DES lautet: 1$XA3AnJXEveE<br>der Text
-  - mit MD5 lautet: d41d8cd98f00b204e9800998ecf8427e<br>der Text -  -
mit CRYPT_EXT_DES lautet: 0$fzSX8JzA0Vw<br>der Text -  - mit CRYPT_MD5
lautet: 1$XA3AnJXEveE<br>der Text -  - mit CRYPT_BLOWFISH lautet:
1$XA3AnJXEveE<br></pre>
<html>
<head>
</head>
<body>
<form action="" method="post">

<input TYPE="TEXT">
<textarea name="txt"></textarea>
<input type="submit" value="send">
</form>
</body>

</html>

Expected result:
----------------
<pre>der Text -  - mit CRYPT_STD_DES lautet: 1$XA3AnJXEveE<br>der Text
-  - mit MD5 lautet: d41d8cd98f00b204e9800998ecf8427e<br>der Text -  -
mit CRYPT_EXT_DES lautet: 0$fzSX8JzA0Vw<br>der Text -  - mit CRYPT_MD5
lautet: 1$XA3AnJXEveE<br>der Text -  - mit CRYPT_BLOWFISH lautet:
1$XA3AnJXEveE<br></pre>
<html>
<head>
</head>
<body>
<form action="/temp/bas64.php" method="post">

<input TYPE="TEXT">
<textarea name="txt"></textarea>
<input type="submit" value="send">
</form>
</body>

</html>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24511&edit=1

Reply via email to