Mise à jour manuelle de phpBB 2.0.9 à 2.0.10

Télécharger la dernière version de phpBB2; scripts de mise à jour automatique ; ou changements manuels de code .

Modérateur: Equipe

Mise à jour manuelle de phpBB 2.0.9 à 2.0.10

Messagede setdepic le 04 Jan 2005 à 01:50

phpBB 2.0.9 -> phpBB 2.0.10

Ouvrir common.php
  • [1] [ Chercher ] environ ligne 43
    Code: Tout sélectionner
    // Unset globally registered vars - PHP5 ... hhmmm
    if (@$ini_val('register_globals') == '1' || strtolower(@$ini_val('register_globals')) == 'on')
    {
       $var_prefix = 'HTTP';
       $var_suffix = '_VARS';
       
       $test = array('_GET', '_POST', '_SERVER', '_COOKIE', '_ENV');

       foreach ($test as $var)
       {
          if (is_array(${$var_prefix . $var . $var_suffix}))
          {
             unset_vars(${$var_prefix . $var . $var_suffix});
          }

          if (is_array(${$var}))
          {
             unset_vars(${$var});
          }
       }

       if (is_array(${'_FILES'}))
       {
          unset_vars(${'_FILES'});
       }

       if (is_array(${'HTTP_POST_FILES'}))
       {
          unset_vars(${'HTTP_POST_FILES'});
       }
    }

    [ Remplacer par ] :
    Code: Tout sélectionner
    // Unset globally registered vars - PHP5 ... hhmmm
    if (@$ini_val('register_globals') == '1' || strtolower(@$ini_val('register_globals')) == 'on')
    {
       $var_prefix = 'HTTP';
       $var_suffix = '_VARS';
       
       $test = array('_GET', '_POST', '_SERVER', '_COOKIE', '_ENV');

       foreach ($test as $var)
       {
          if (is_array(${$var_prefix . $var . $var_suffix}))
          {
             unset_vars(${$var_prefix . $var . $var_suffix});
             @reset(${$var_prefix . $var . $var_suffix});
          }

          if (is_array(${$var}))
          {
             unset_vars(${$var});
             @reset(${$var});
          }
       }

       if (is_array(${'_FILES'}))
       {
          unset_vars(${'_FILES'});
          @reset(${'_FILES'});
       }

       if (is_array(${'HTTP_POST_FILES'}))
       {
          unset_vars(${'HTTP_POST_FILES'});
          @reset(${'HTTP_POST_FILES'});
       }
    }

    // PHP5 with register_long_arrays off?
    if (!isset($HTTP_POST_VARS) && isset($_POST))
    {
       $HTTP_POST_VARS = $_POST;
       $HTTP_GET_VARS = $_GET;
       $HTTP_SERVER_VARS = $_SERVER;
       $HTTP_COOKIE_VARS = $_COOKIE;
       $HTTP_ENV_VARS = $_ENV;
       $HTTP_POST_FILES = $_FILES;
    }
Ouvrir admin/admin_board.php
  • [2] [ Chercher ] environ ligne 46 :
    Code: Tout sélectionner
    $default_config[$config_name] = str_replace("'", "\'", $config_value);

    [ Remplacer par ] :
    Code: Tout sélectionner
    $default_config[$config_name] = isset($HTTP_POST_VARS['submit']) ? str_replace("'", "\'", $config_value) : $config_value;
Ouvrir admin/admin_styles.php
  • [3] [ Chercher ] environ ligne 49 :
    Code: Tout sélectionner
    require('./pagestart.' . $phpEx);

    [ Après, ajouter ] :
    Code: Tout sélectionner
    $confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : FALSE;
    $cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : FALSE;
Ouvrir includes/functions.php
  • [4] [ Chercher ] environ ligne 190 :
    Code: Tout sélectionner
    if ( !empty($SID) )
       {
          $boxstring .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />';
       }

    [ Remplacer par ] :
    Code: Tout sélectionner
    // Let the jumpbox work again in sites having additional session id checks.
    //   if ( !empty($SID) )
    //   {
          $boxstring .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />';
    //   }
  • [5] [ Chercher ] environ ligne 743 :
    Code: Tout sélectionner
    if (!empty($db))
       {
          $db->sql_close();
       }

    [ Après, ajouter ] :
    Code: Tout sélectionner
    if (strstr(urldecode($url), "\n") || strstr(urldecode($url), "\r"))
       {
          message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
       }
Ouvrir login.php
  • [6] [ Chercher ] environ ligne 96 :
    Code: Tout sélectionner
    $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
                   $redirect = str_replace('?', '&', $redirect);

    [ Après ajouter ] :
    Code: Tout sélectionner
    if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r"))
                   {
                      message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
                   }
  • [7] [ Chercher ] environ ligne 116 :
    Code: Tout sélectionner
    $redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&amp;', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
                   $redirect = str_replace('?', '&', $redirect);

    [ Après ajouter ] :
    Code: Tout sélectionner
    if (strstr(urldecode($redirect), "\n") || strstr(urldecode($redirect), "\r"))
                   {
                      message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.');
                   }
Ouvrir search.php
  • [8] [ Chercher ] environ ligne 62:
    Code: Tout sélectionner
    $search_author = ( isset($HTTP_POST_VARS['search_author']) ) ? $HTTP_POST_VARS['search_author'] : $HTTP_GET_VARS['search_author'];

    [ Après ajouter ] :
    Code: Tout sélectionner
    $search_author = htmlspecialchars($search_author);
setdepic
Grand-maître des floodeurs
Grand-maître des floodeurs
 
Messages: 3580
Inscription: 08 Jan 2003 à 12:39
Localisation: ICI

Retourner vers Téléchargements et mises à jour

Qui est en ligne

Utilisateurs parcourant ce forum: MSN [Bot] et 0 invités

Liens : phpBB.biz • phpBBHacks.com • phpBB-Seo.com • EzCom-fr.com • phpBB-Services.com • phpBB3 Styles • phpBB podpora • Net Avenir • PromoBenef • Ticket Gagnant •