I'm creating a fairly simple wordpress plugin and I feel the code below is sufficiently safe from SQL injection, but a friend of mine very vaguely said that it wasn't without elaborating and now I'm second guessing myself.
Is the following safe? What's below is literally the entire contents of, say for example, final.php and it is included in another file.
list($eid, $uid, $u, $an) = explode(';', base64_decode($_GET['q']), 4); $wp->insert(INFO_TABLE, array( 'eid' => $eid, 'uid' => $uid, 'u' => $u, 'an' => $an, ) ); header('Location: ' . $u);