Does IE treat base64encoded query strings differently?

I’m quite stumped. I can’t seem to determine what the problem is with my code. The code works fine in FireFox and Chrome, and I am successfully able to send a link with a serialized and base64encoded array to a script that generates a PDF on the fly. It doesn’t work in IE though.


$data = unserialize(base64_decode($_GET['pdf']));
if(is_array($data)):
	// process the PDF using DOMPDF
else:
	echo "There is no such PDF.";
endif;

I have the above basic check to ensure the data is successfully decoded and array-ified, which is quite successful in FF and Chrome, but I get the “There is no such PDF” option when using IE.

Is there something IE is doing (perhaps to the query string?) that is not allowing a proper decode or unserialization?

I found the problem on another site and thought I’d share.

IE has a maximum URL length of 2037 characters and my URL length was just over 2100.

Thanks anyway!