Skip to content

Commit

Permalink
Merge pull request #210 from abraham1901/dev
Browse files Browse the repository at this point in the history
Bugfix: Fixed location containing '\', such as '~ \.php$'
  • Loading branch information
James Fryman committed Dec 24, 2013
2 parents 7d1540b + 658b25f commit d53be0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/resource/location.pp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@
}
$config_file = "${nginx::config::nx_conf_dir}/sites-available/${vhost}.conf"

$location_sanitized = regsubst($location, '\/', '_', 'G')
$location_sanitized_tmp = regsubst($location, '\/', '_', 'G')
$location_sanitized = regsubst($location_sanitized_tmp, '\\', '_', 'G')

## Check for various error conditions
if ($vhost == undef) {
Expand Down

0 comments on commit d53be0f

Please sign in to comment.