Télécharger la dernière version de phpBB2; scripts de mise à jour automatique ; ou changements manuels de code .
Modérateur: Equipe
de setdepic le 04 Jan 2005 à 01:43
phpBB 2.0.7 > phpBB 2.0.7a
- La faille de sécurité pour la recherche , voici comment la réparer :
- OUVRIR search.php
- TROUVER :
- Code: Tout sélectionner
$show_results = ( isset($HTTP_POST_VARS['show_results']) ) ? $HTTP_POST_VARS['show_results'] : 'posts';
- APRES , AJOUTER :
- Code: Tout sélectionner
$show_results = ($show_results == 'topics') ? 'topics' : 'posts';
- TROUVER :
- Code: Tout sélectionner
$store_vars = array('search_results', 'total_match_count', 'split_search', 'sort_by', 'sort_dir', 'show_results', 'return_chars');
- APRES , AJOUTER :
- Code: Tout sélectionner
$search_results = '';
- Erreur de redirection :
- OUVRIR login.php
- TROUVER :
- Code: Tout sélectionner
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "index.$phpEx";
- REMPLACER PAR :
- Code: Tout sélectionner
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
- TROUVER :
- Code: Tout sélectionner
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : '';
- REMPLACER PAR :
- Code: Tout sélectionner
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : '';
- TROUVER :
- Code: Tout sélectionner
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "";
- REMPLACER PAR :
- Code: Tout sélectionner
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "";
- TROUVER :
- Code: Tout sélectionner
$url = (!empty($HTTP_POST_VARS['redirect'])) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : htmlspecialchars($HTTP_GET_VARS['redirect']);
- APRES , AJOUTER :
- Code: Tout sélectionner
$url = str_replace('&', '&', $url);
- TROUVER :
- Code: Tout sélectionner
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? htmlspecialchars($HTTP_POST_VARS['redirect']) : "index.$phpEx";
- REMPLACER PAR :
- Code: Tout sélectionner
$url = ( !empty($HTTP_POST_VARS['redirect']) ) ? str_replace('&', '&', htmlspecialchars($HTTP_POST_VARS['redirect'])) : "index.$phpEx";
- Correction des couleurs de table pour les messages privés :
- OUVRIR privmsg.php
- TROUVER :
- Code: Tout sélectionner
message_die(GENERAL_ERROR, 'Could not query private messages', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
- APRES , AJOUTER :
- Code: Tout sélectionner
$i = 0;
- TROUVER :
- Code: Tout sélectionner
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
- APRES , AJOUTER :
- Code: Tout sélectionner
$i++;
-
setdepic
- Grand-maître des floodeurs

-
- Messages: 3580
- Inscription: 08 Jan 2003 à 12:39
- Localisation: ICI
Retourner vers Téléchargements et mises à jour
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité