[vuser] r572 committed - Don't send hashFunctionName when the passed in hash name is invalid. (...

0 views
Skip to first unread message

codesite...@google.com

unread,
Sep 16, 2009, 12:15:33 AM9/16/09
to vuser-...@googlegroups.com
Revision: 572
Author: perlstalker
Date: Tue Sep 15 21:15:09 2009
Log: Don't send hashFunctionName when the passed in hash name is invalid.
(Fixes issue 7)
http://code.google.com/p/vuser/source/detail?r=572

Modified:

/VUser-Google-ProvisioningAPI/trunk/lib/VUser/Google/ProvisioningAPI/V2_0.pm

=======================================
---
/VUser-Google-ProvisioningAPI/trunk/lib/VUser/Google/ProvisioningAPI/V2_0.pm
Tue Sep 15 21:05:05 2009
+++
/VUser-Google-ProvisioningAPI/trunk/lib/VUser/Google/ProvisioningAPI/V2_0.pm
Tue Sep 15 21:15:09 2009
@@ -511,6 +511,10 @@
} elsif (lc($hash_name) eq 'md5') {
$hash_name = "MD5";
}
+ else {
+ # Unset $hash_name if it's not a valid hash type
+ $hash_name = undef;
+ }
}

my $body = $self->XMLPrefix;

Reply all
Reply to author
Forward
0 new messages