Bug 63447

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1064 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2010-11-15 15:18:48 +00:00
parent 5c47c853d1
commit cdf986aa46
1 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,11 @@ sub get_login_info {
if ($authdata)
{
trick_taint($authdata);
$authdata = decode_json($authdata);
eval { $authdata = decode_json($authdata); };
if ($@ && $@ =~ /malformed/)
{
die "Error $@ in: $authdata";
}
}
return { failure => AUTH_NODATA } unless $authdata && $authdata->{user_name};