Jump to content

[SOLVED] $_GET missing characters!


simonp

Recommended Posts

I'm passing an encrypted string to a PHP script but if the string includes a plus sign it gets replaced with a space!? WTF?!

 

Eg:

https://www.xxx.com/login.php?u=abc&p=nqB7tQflgsxR4Zag7eAl1ngujbHn+4gKm3rcKLmA1tg=

 

I then use:

 

$encryptedpass = $_GET['p'];

 

but $encryptedpass equals nqB7tQflgsxR4Zag7eAl1ngujbHn 4gKm3rcKLmA1tg=

 

(note the plus sign halfway through has been replaced with a space)

 

How can I stop this happening? Is there a chance other characters could cause a problem?

 

Thanks

 

Simon

Link to comment
https://forums.phpfreaks.com/topic/147407-solved-_get-missing-characters/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.