diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index caf0674b7d0..696abc45b5f 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -5,6 +5,7 @@ * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2007 Jean Heimburger * Copyright (C) 2010-2011 Juanjo Menent + * Copyright (C) 2011 Jean Heimburger * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -2451,14 +2452,14 @@ class Product extends CommonObject // \todo A faire // Cree fichier en taille origine - $content = @file_get_contents(urlencode($file)); - if( $content) - { - $nom = basename($file); - $im = fopen(dol_osencode($dir.$nom),'wb'); - fwrite($im, $content); - fclose($im); - } + $content = @file_get_contents($file); + if( $content) + { + $nom = basename($file); + $im = fopen(dol_osencode($dir.$nom),'wb'); + fwrite($im, $content); + fclose($im); + } } }