| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 80 | 1 | public function validateDigestAuthentication($sPassword, $sRealm) { |
|
| 81 | 1 | $a1 = md5($this->username . ':' . $sRealm . ':' . $sPassword); |
|
| 82 | 1 | $a2 = md5($this->HTTPMethod . ':' . $this->uri); |
|
| 83 | 1 | $sValidResponse = md5($a1 . ':' . $this->nonce . ':' . $this->nc . ':' . $this->cnonce . ':' . $this->qop . ':' . $a2); |
|
| 84 | |||
| 85 | 1 | return $sValidResponse == $this->response; |
|
| 86 | } |
||
| 87 | } |
||
| 88 |