Skip to content

Commit

Permalink
Revert "accpet \ or / in win32 registry path"
Browse files Browse the repository at this point in the history
This reverts commit ec16d4e, pathes are
now normalized in calling code.
  • Loading branch information
guillomovitch committed May 4, 2012
1 parent 48528e1 commit 189f93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FusionInventory/Agent/Tools/Win32.pm
Expand Up @@ -93,7 +93,7 @@ sub getRegistryValue {
my (%params) = @_;

my ($root, $keyName, $valueName);
if ($params{path} =~ /^(HKEY_[^\/\\]+)[\/\\](.+)[\/\\]([^\/]+)/ ) {
if ($params{path} =~ /^(HKEY_\S+)\/(.+)\/([^\/]+)/ ) {
$root = $1;
$keyName = $2;
$valueName = $3;
Expand Down

0 comments on commit 189f93f

Please sign in to comment.