Serializing array in PHP, preventing injection
I am writing a PHP script that uses serialized arrays to store data. How can I prevent serialization injection? Your account name would be very easy:
something";s:6:"access";s:5:"admin";
for a simple example. The user could then add the rest of the required parameters. Will work on this? Does php unserialize take this as a runaway character? If so, is it possible to apply additional characters to the whole array without repeating through?
Thanks for the help!
+2
a source to share