now the redirect bug should be *really* fixed
This commit is contained in:
parent
3f6242c9d0
commit
f2b6a11499
10
comments.php
10
comments.php
@ -155,6 +155,9 @@
|
|||||||
|
|
||||||
do_action('comment_post', $_GET['entry'], array($id, $arr));
|
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()) {
|
if ($fp_config['general']['notify'] && !user_loggedin()) {
|
||||||
|
|
||||||
@ -162,8 +165,6 @@
|
|||||||
|
|
||||||
$comm_mail = isset($arr['email'])? "<{$arr['email']}>" : '';
|
$comm_mail = isset($arr['email'])? "<{$arr['email']}>" : '';
|
||||||
$from_mail = $comm_mail? $arr['email'] : $fp_config['general']['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...
|
$post = $e; // plugin such as prettyurls might need this...
|
||||||
|
|
||||||
@ -202,10 +203,7 @@
|
|||||||
// if comment is valid, this redirect will clean the postdata
|
// if comment is valid, this redirect will clean the postdata
|
||||||
$location = str_replace(
|
$location = str_replace(
|
||||||
'&', '&',
|
'&', '&',
|
||||||
apply_filters(
|
get_comments_link($entryid)
|
||||||
'comments_link',
|
|
||||||
'',
|
|
||||||
$entryid)
|
|
||||||
) . '#'.$id;
|
) . '#'.$id;
|
||||||
|
|
||||||
utils_redirect($location,true);
|
utils_redirect($location,true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user