Skip to content

Commit 9cbc47f

Browse files
committed
WIP
1 parent bafded0 commit 9cbc47f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Connectors/DocuWareConnector.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ protected function getOrCreateNewOAuthToken()
8585

8686
return $token->accessToken;
8787
}
88-
89-
// If configuration type is unsupported, throw an exception
90-
throw new \Exception('Unsupported configuration type');
9188
}
9289

9390
protected function getAuthenticationTokenEndpoint(): IdentityServiceConfiguration

src/DocuWareUrl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function make(): string
8484
}
8585

8686
// Source: https://support.docuware.com/en-US/forums/help-with-technical-problems/ea9618df-c491-e911-80e7-0003ff59a7c6
87-
$key = utf8_encode($this->passphrase);
87+
$key = mb_convert_encoding($this->passphrase, 'UTF-8', 'ISO-8859-1');
8888
$passphrase = hash('sha512', $key, true);
8989
$encryption_key = substr($passphrase, 0, 32);
9090
$iv = substr($passphrase, 32, 16);

0 commit comments

Comments
 (0)