Merge pull request #301 from yath/parser-future-backslash

fix location sanitizing with parser 'future'
This commit is contained in:
James Fryman 2014-05-27 12:05:44 -05:00
commit 5933b360e0

View file

@ -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) {