Skip to content

Commit

Permalink
Optim : Condition always evaluated to true at the point
Browse files Browse the repository at this point in the history
  • Loading branch information
s-renier-taonix-fr authored and f3l1x committed Feb 13, 2023
1 parent d4ab013 commit 282c3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2732,7 +2732,7 @@ function setCredentials($username, $password, $authtype = 'basic', $digestReques
// request-digest = <"> < KD ( H(A1), unq(nonce-value) ":" H(A2) ) > <">

$unhashedDigest = '';
$nonce = isset($digestRequest['nonce']) ? $digestRequest['nonce'] : '';
$nonce = $digestRequest['nonce'];
$cnonce = $nonce;
if ($digestRequest['qop'] != '') {
$unhashedDigest = $HA1 . ':' . $nonce . ':' . sprintf("%08d", $digestRequest['nc']) . ':' . $cnonce . ':' . $digestRequest['qop'] . ':' . $HA2;
Expand Down

0 comments on commit 282c3bd

Please sign in to comment.