Merge pull request #301 from yath/parser-future-backslash
fix location sanitizing with parser 'future'
This commit is contained in:
commit
5933b360e0
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ define nginx::resource::location (
|
||||||
$config_file = "${nginx::config::nx_conf_dir}/sites-available/${vhost_sanitized}.conf"
|
$config_file = "${nginx::config::nx_conf_dir}/sites-available/${vhost_sanitized}.conf"
|
||||||
|
|
||||||
$location_sanitized_tmp = regsubst($location, '\/', '_', 'G')
|
$location_sanitized_tmp = regsubst($location, '\/', '_', 'G')
|
||||||
$location_sanitized = regsubst($location_sanitized_tmp, '\\', '_', 'G')
|
$location_sanitized = regsubst($location_sanitized_tmp, "\\\\", '_', 'G')
|
||||||
|
|
||||||
## Check for various error conditions
|
## Check for various error conditions
|
||||||
if ($vhost == undef) {
|
if ($vhost == undef) {
|
||||||
|
|
Loading…
Reference in a new issue