Skip to content

Commit a4ffdc3

Browse files
committed
Minor - Add string casting
1 parent 349adb2 commit a4ffdc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/inc/lib/api.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6845,7 +6845,7 @@ function api_is_valid_secret_key($original_key_secret, $security_key)
68456845
return false;
68466846
}
68476847

6848-
return $original_key_secret === sha1($security_key);
6848+
return (string) $original_key_secret === sha1($security_key);
68496849
}
68506850

68516851
/**

0 commit comments

Comments
 (0)