Skip to content

Commit

Permalink
Fix for #458 and #459 : Passing explicit value instead of relying on …
Browse files Browse the repository at this point in the history
…casting
  • Loading branch information
gnongsie committed Sep 2, 2024
1 parent 07e6681 commit d9bf5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/authorize/util/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private function checkPropertyAndMask($prop, $obj){

if(strcmp($prop->getName(),$sensitiveField->tagName)==0)
{
$prop->setValue($obj,preg_replace($inputPattern,$inputReplacement,$prop->getValue($obj)));
$prop->setValue($obj,preg_replace($inputPattern,$inputReplacement,$prop->getValue($obj) ? $prop->getValue($obj) : ""));
return $prop->getValue($obj);
}
}
Expand Down

0 comments on commit d9bf5bb

Please sign in to comment.