now the redirect bug should be *really* fixed
This commit is contained in:
parent
3f6242c9d0
commit
f2b6a11499
14
comments.php
14
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,9 +165,7 @@
|
|||||||
|
|
||||||
$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...
|
||||||
|
|
||||||
$lang = lang_load('comments');
|
$lang = lang_load('comments');
|
||||||
@ -202,11 +203,8 @@
|
|||||||
// 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',
|
) . '#'.$id;
|
||||||
'',
|
|
||||||
$entryid)
|
|
||||||
) . '#'.$id;
|
|
||||||
|
|
||||||
utils_redirect($location,true);
|
utils_redirect($location,true);
|
||||||
exit();
|
exit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user