File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
parenthesis
8
8
* fix #789: Avoid warning on commandline about possible confusion when reading quoted
9
9
configuration value including a dash from configuration file
10
+ * fix #790: Fix server URL parsing when it doesn't include scheme
10
11
11
12
inventory:
12
13
* Fix rare windows perl error during drives, ipv6 network or videos inventory
Original file line number Diff line number Diff line change @@ -50,8 +50,9 @@ sub _getCanonicalURL {
50
50
$url -> scheme(' http' );
51
51
# Eventually split on a slash to get host and path
52
52
if ($string =~ m { ^([^/]+)[/](.*)$} ) {
53
- $url -> host($1 );
54
- $url -> path($2 // ' ' );
53
+ my ($host , $path ) = ($1 , $2 );
54
+ $url -> host($host );
55
+ $url -> path($path // ' ' );
55
56
} else {
56
57
$url -> host($string );
57
58
$url -> path(' ' );
You can’t perform that action at this time.
0 commit comments