1.6.1 Bakım ve Güvenlik Güncellemesi

1.6 Sürümü için Bakım ve Güvenlik güncellemesidir.Aşağıdaki dosyaları ftpnize direk şekilde atıp upgrade.php yi çalıştırın.(siteniz.com/install/upgrade.php)


Elle güncelleme yapmak isteyenler için aşağıdaki adımlar sırasıyla belirtilmiştir.



===============
1. editpost.php
===============

Bul:



    // Setup a unique posthash for attachment management
    $posthash = $post['posthash'];





Bununla Değiştir:



    // Setup a unique posthash for attachment management
    $posthash = htmlspecialchars_uni($post['posthash']);







===============
2. newreply.php
===============

Bul:

    elseif($mybb->input['action'] == "editdraft")
    {
        // Drafts have posthashes, too...
        $posthash = $post['posthash'];
    }
    else
    {
        $posthash = $mybb->input['posthash'];
    }

Bununla değiştir:



    elseif($mybb->input['action'] == "editdraft")
    {
        // Drafts have posthashes, too...
        $posthash = htmlspecialchars_uni($post['posthash']);
    }
    else
    {
        $posthash = htmlspecialchars_uni($mybb->input['posthash']);
    }







===============
3. member.php
===============

Bul:



    // Redirect to the page where the user came from, but not if that was the login page.
    if($mybb->input['url'] && !preg_match("/action=login/i", $mybb->input['url']))
    {
        $redirect_url = htmlentities($mybb->input['url']);
    }
    elseif($_SERVER['HTTP_REFERER'])
    {
        $redirect_url = htmlentities($_SERVER['HTTP_REFERER']);
    }




Bununla değiştir:

    // Redirect to the page where the user came from, but not if that was the login page.
    if($_SERVER['HTTP_REFERER'] && strpos($_SERVER['HTTP_REFERER'], "action=login") === false)
    {
        $redirect_url = htmlentities($_SERVER['HTTP_REFERER']);
    }
    else
    {
        $redirect_url = '';
    }