Skip to content

Commit d9bf5bb

Browse files
committed
Fix for #458 and #459 : Passing explicit value instead of relying on casting
1 parent 07e6681 commit d9bf5bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/authorize/util/Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private function checkPropertyAndMask($prop, $obj){
160160

161161
if(strcmp($prop->getName(),$sensitiveField->tagName)==0)
162162
{
163-
$prop->setValue($obj,preg_replace($inputPattern,$inputReplacement,$prop->getValue($obj)));
163+
$prop->setValue($obj,preg_replace($inputPattern,$inputReplacement,$prop->getValue($obj) ? $prop->getValue($obj) : ""));
164164
return $prop->getValue($obj);
165165
}
166166
}

0 commit comments

Comments
 (0)