Urgent Help Needed Please ! - $_REQUEST Shenanigans
Posted: Thu Jun 15, 2006 9:09 am
Hi guys and gals,
I'm trying to use $_REQUEST to pull the value of an encrypted variable back off the URL. The URL looks like this :
http://www.foo.com/blah.php?encrypted=F ... xM5CAYPJwo
and I try to read it using :
$str1=$_REQUEST['encrypted'];
When I try to decrypt this it fails. However, if I put the raw string out of the URL using cut and paste into decrypt algorithm it works perfectly. I've done a comparison between what $_REQUEST gives m and what vut and paste gives me and the 2 strings are below :
Cut and paste
FDUqHR4xCjx4fg8RJDItNxM5CAYPJwo8YRx0QHh7dnd2cH5ZWHQPQQdgfyIaBRY9DiV2EltyB0MDaBtFZ2cEcXdse1lbcxpDA2hpWXlndXV+A3ldKXsBRU5+DQwLIzYtCS52Wlp1DkILa381Jzk3KzN8eVBFdxEyZQsaInhrAwkLYQYoPwF/VXI8PQYvJTEXIjI+BR9/ejJnGxExDnASKjQ1CAYPJ2UWQC01AHcbAxEECQ4tTQFhQWE9KgEmIn8IBhUIIS4GETRaPi01IzJ/dWFyDzoOIUIBVgstFT4jMXhhAgo/PX8=
$_REQUEST
FDUqHR4xCjx4fg8RJDItNxM5CAYPJwo8YRx0QHh7dnd2cH5ZWHQPQQdgfyIaBRY9DiV2EltyB0MDaBtFZ2cEcXdse1lbcxpDA2hpWXlndXV A3ldKXsBRU5 DQwLIzYtCS52Wlp1DkILa381Jzk3KzN8eVBFdxEyZQsaInhrAwkLYQYoPwF/VXI8PQYvJTEXIjI BR9/ejJnGxExDnASKjQ1CAYPJ2UWQC01AHcbAxEECQ4tTQFhQWE9KgEmIn8IBhUIIS4GETRaPi01IzJ/dWFyDzoOIUIBVgstFT4jMXhhAgo/PX8=
As you will see, the + signs in the cut and pasted one have ben converted into CR or LF in the $_REQUEST one. Has anybody any idea how I can get round this please ?
Any help much appeciated
Cheers
Cheesemaker.
I'm trying to use $_REQUEST to pull the value of an encrypted variable back off the URL. The URL looks like this :
http://www.foo.com/blah.php?encrypted=F ... xM5CAYPJwo
and I try to read it using :
$str1=$_REQUEST['encrypted'];
When I try to decrypt this it fails. However, if I put the raw string out of the URL using cut and paste into decrypt algorithm it works perfectly. I've done a comparison between what $_REQUEST gives m and what vut and paste gives me and the 2 strings are below :
Cut and paste
FDUqHR4xCjx4fg8RJDItNxM5CAYPJwo8YRx0QHh7dnd2cH5ZWHQPQQdgfyIaBRY9DiV2EltyB0MDaBtFZ2cEcXdse1lbcxpDA2hpWXlndXV+A3ldKXsBRU5+DQwLIzYtCS52Wlp1DkILa381Jzk3KzN8eVBFdxEyZQsaInhrAwkLYQYoPwF/VXI8PQYvJTEXIjI+BR9/ejJnGxExDnASKjQ1CAYPJ2UWQC01AHcbAxEECQ4tTQFhQWE9KgEmIn8IBhUIIS4GETRaPi01IzJ/dWFyDzoOIUIBVgstFT4jMXhhAgo/PX8=
$_REQUEST
FDUqHR4xCjx4fg8RJDItNxM5CAYPJwo8YRx0QHh7dnd2cH5ZWHQPQQdgfyIaBRY9DiV2EltyB0MDaBtFZ2cEcXdse1lbcxpDA2hpWXlndXV A3ldKXsBRU5 DQwLIzYtCS52Wlp1DkILa381Jzk3KzN8eVBFdxEyZQsaInhrAwkLYQYoPwF/VXI8PQYvJTEXIjI BR9/ejJnGxExDnASKjQ1CAYPJ2UWQC01AHcbAxEECQ4tTQFhQWE9KgEmIn8IBhUIIS4GETRaPi01IzJ/dWFyDzoOIUIBVgstFT4jMXhhAgo/PX8=
As you will see, the + signs in the cut and pasted one have ben converted into CR or LF in the $_REQUEST one. Has anybody any idea how I can get round this please ?
Any help much appeciated
Cheers
Cheesemaker.