Voici la mise à jour du MOD pour la version finale (2.0.0).
Attention
Du à un bug actuel du forum, l'installation produit quelques erreurs dans le fichier "main/class/class_upload.php"!
il peut être simplement corrigé en changeant 4 lignes :
trigger_error("La variable $_POST['$this->name'] n'existe pas", FSB_ERROR);
devient :
trigger_error("La variable \$_POST['$this->name'] n'existe pas", FSB_ERROR);
trigger_error("La variable $_FILES['$this->name'] n'existe pas", FSB_ERROR);
devient :
trigger_error("La variable \$_FILES['$this->name'] n'existe pas", FSB_ERROR);
if (!(strpos($this->filename, "../") === false && strpos($this->filename, "..\") === false)) {
devient :
if (!(strpos($this->filename, "../") === false && strpos($this->filename, "..\\") === false)) {
if (strcmp($cur, "/") == 0 || strcmp($cur, "\") == 0) {
devient :
if (strcmp($cur, "/") == 0 || strcmp($cur, "\\") == 0) {
Au cas ou il serait corrigé, j'ai préféré ne pas Hacker le fichier d'installation.
Fichier joint
TéléchargerFichier téléchargé 7 fois (nom du fichier: ftp_upload.tar.gz ; taille: 6.291 KO, date d'upload: 06 Janvier 2008, 1:33)
Version 0.3b, Compatible 2.0.0 Attention au bug référencé!!!