Security fixes

Security fixes perform by S.J for the phpBB plugin.