Changeset 3857

Show
Ignore:
Timestamp:
01/28/08 21:15:42 (7 months ago)
Author:
jmathis
Message:

secure problem

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/centreon-1.4.2.4/www/include/doc/get_image.php

    r3498 r3857  
    1616*/ 
    1717 
    18         $img = fopen("../../../doc/".$_GET["lang"]."/images/".$_GET["img"], "r");        
     18        $tab = split("/", $_GET["img"]); 
     19        foreach ($tab as $img){ 
     20                $image = $img; 
     21        } 
     22        $img = fopen("../../../doc/".$_GET["lang"]."/images/".$image, "r");      
    1923        while ($line = fgets($img)){ 
    2024                print $line; 
    2125        } 
    2226?> 
    23