opendcim / openDCIM

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

Report_network_map.php -> SVG error link port with slashe #1568

Open alex001x opened 1 week ago

alex001x commented 1 week ago

Describe the bug To Reproduce Steps to reproduce the behavior: Report -> report network map

  1. Select Cabinet
  2. Select svg
  3. See error in link port data,

Expected behavior the generated link is https://myproject.comdevices.php/?DeviceID=5997 it should have been https://myproject.com/devices.php?DeviceID=5997 problem with slash after https://myproject.comdevices.php to move after https://myproject.com

Screenshots image

alex001x commented 1 week ago

InstallURL with ou without slashe without / causes the error I send à fix in report_network_map.php $baseURI = rtrim($config->ParameterArray["InstallURL"], '/') . '/'; // control if InstallURL with "/" add in line 291 alex001x:patch-4 ;)