From 580817964e5708d7b1ebf8eade4d546a0ec258a9 Mon Sep 17 00:00:00 2001 From: tiaris Date: Wed, 4 May 2011 13:37:19 +0000 Subject: [PATCH] Correct add_photo_web method --- htdocs/product/class/product.class.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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); + } } }