We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 525217b commit 69b6cc6Copy full SHA for 69b6cc6
Changes
@@ -7,6 +7,7 @@ core:
7
parenthesis
8
* fix #789: Avoid warning on commandline about possible confusion when reading quoted
9
configuration value including a dash from configuration file
10
+* fix #790: Fix server URL parsing when it doesn't include scheme
11
12
inventory:
13
* Fix rare windows perl error during drives, ipv6 network or videos inventory
lib/GLPI/Agent/Target/Server.pm
@@ -50,8 +50,9 @@ sub _getCanonicalURL {
50
$url->scheme('http');
51
# Eventually split on a slash to get host and path
52
if ($string =~ m{^([^/]+)[/](.*)$}) {
53
- $url->host($1);
54
- $url->path($2 // '');
+ my ($host, $path) = ($1, $2);
+ $url->host($host);
55
+ $url->path($path // '');
56
} else {
57
$url->host($string);
58
$url->path('');
0 commit comments