opendcim / openDCIM

An open source (GPL v3) Data Center Inventory Management (DCIM) application.
http://opendcim.org
305 stars 204 forks source link

Drawings link is broken #1479

Closed lucamaro closed 10 months ago

lucamaro commented 10 months ago

Hello, I think in db_stats.php line 106 urlencode command break the link url since it contains the path of the image and path separator must not be converted.

$mapfile=$config->ParameterArray["drawingpath"] . $dc->DrawingFileName;
...
$mapHTML="<div class=\"canvas\" style=\"background-image: url('".urlencode($mapfile)."')\">
wilpig commented 10 months ago

https://github.com/opendcim/openDCIM/wiki/FAQ#getting-404-trying-to-access-some-linksimages