Recent Topics

1 Jul 29, 2008 11:05    

My b2evolution Version: 2.x

Hi All,

Appologies if this one has been posted, I have spent nearly an hour reading many posts in this forum with no luck

Server Details:
b2evolution 2.4.2
Windows 2003
IIS 6
PHP Version 5.2.5
MySQL 5.0.51a

When i try and post a comment i get the '400: Bad Request' Error message.

Is there any edits i need to make to any of the files to make this work in my enviroment?

2 Jul 29, 2008 12:24

Hi, Seem to have found the problem:

This problem seems to be to do with the redirects in /inc/_core/_template.funcs.php:

All i did was uncomment the following code:


    // <fp

    /* fp>why do we need this?
       dh>because Location: redirects are supposed to be absolute.
    if( substr($redirect_to, 0, 1) == '/' )
    { // relative URL, prepend current host:
        global $ReqHost;

        $redirect_to = $ReqHost.$redirect_to;
    }
    */ 

to this :


    // <fp

    /* fp>why do we need this?
       dh>because Location: redirects are supposed to be absolute.
    */
    if( substr($redirect_to, 0, 1) == '/' )
    { // relative URL, prepend current host:
        global $ReqHost;

        $redirect_to = $ReqHost.$redirect_to;
    } 

Obviously you had the solution already coded but commented out! :lol:


Form is loading...