now the redirect bug should be *really* fixed

This commit is contained in:
real_nowhereman 2008-02-19 21:17:30 +00:00
parent 3f6242c9d0
commit f2b6a11499

View File

@ -155,6 +155,9 @@
do_action('comment_post', $_GET['entry'], array($id, $arr));
$q =& new FPDB_Query(array('id'=>$_GET['entry'],'fullparse'=>false), null);
list($entryid, $e) = $q->getEntry();
if ($fp_config['general']['notify'] && !user_loggedin()) {
@ -162,8 +165,6 @@
$comm_mail = isset($arr['email'])? "<{$arr['email']}>" : '';
$from_mail = $comm_mail? $arr['email'] : $fp_config['general']['email'];
$q =& new FPDB_Query(array('entry'=>$_GET['entry'],'fullparse'=>false), null);
list($entryid, $e) = $q->getEntry();
$post = $e; // plugin such as prettyurls might need this...
@ -202,10 +203,7 @@
// if comment is valid, this redirect will clean the postdata
$location = str_replace(
'&amp;', '&',
apply_filters(
'comments_link',
'',
$entryid)
get_comments_link($entryid)
) . '#'.$id;
utils_redirect($location,true);