diff --git a/ecrire/inc/minipres.php b/ecrire/inc/minipres.php index 67acad5788b1cdb1a65b6251c029ea5cd334c80e..206e28f44e7683056e075f94f428d9dfc94870ba 100644 --- a/ecrire/inc/minipres.php +++ b/ecrire/inc/minipres.php @@ -217,7 +217,14 @@ function http_wrapper($img){ static $wrapper_state=NULL; static $wrapper_table = array(); - $f = _DIR_IMG_PACK . $img; + if (strpos($img,'/')===FALSE) // on ne prefixe par _DIR_IMG_PACK que si c'est un nom de fichier sans chemin + $f = _DIR_IMG_PACK . $img; + else { // sinon, le path a ete fourni + $f = $img; + // gerer quand meme le cas des hacks pre 1.9.2 ou l'on faisait un path relatif depuis img_pack + if (substr($f,0,strlen("../"._DIR_PLUGINS))=="../"._DIR_PLUGINS) + $f = substr($img,3); // on enleve le ../ qui ne faisait que ramener au rep courant + } if ($wrapper_state==NULL){ global $browser_name;