$extra_params .= isset($HTTP_GET_VARS[$extra_param]) ? $extra_param.'='.$HTTP_GET_VARS[$extra_param].'&' : $extra_param.'=&';
which is added twice in the update for 2.0.3 replacing these line:
$extra_params .= isset(${$extra_param}) ? $extra_param.'='.${$extra_param}.'&' : $extra_param.'=&';
For now I've just reverted back to the old comment_post.php since it seems these lines are just to add register globals = off functionality, so it shouldn't hurt anything reverting back to the old file, I hope. Regardless, if somebody with more PHP experience could look into this and find out why this is messing gallery up it would be greatly appreciated. Thank you.