Jump to content

[SOLVED] serialize dropping spaces


leothelion

Recommended Posts

prog 1...

$ali = serialize($alias);

$comm = serialize($comment);

header("location:modreply3.php?host=$host1&alias=$ali&comment=$comm");

 

modreply3.php....

$host1 = $_GET['host'];

$al = unserialize($_GET['alias']);

$comm = unserialize($_GET['comment']);

 

the trouble with dropping spaces is with the comment.

"test comment" is being passed as "test"

http://mandy4/ccadns/modreply3.php?host=jlm2&alias=a:2:{i:0;s:11:%22jlm2alaise2%22;i:1;s:9:%22jlm2alias%22;}&comment=a:1:{i:0;s:4:%22test%22;}

 

I'm using serialize because alias & comment are arrays.

any ideas on a fix??

thanks

Link to comment
https://forums.phpfreaks.com/topic/170117-solved-serialize-dropping-spaces/
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.