* V1.17 -> 241021 nach Update auf 6.8.0 gibt es bei der Message Location kein "encryptet" mehr (if(isset($message->location->encrypted)) eingebaut)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/*
|
||||
Nenninger N-Tools.de
|
||||
Version 1.16
|
||||
Version 1.17
|
||||
|
||||
*/
|
||||
|
||||
@@ -116,7 +116,7 @@ class UUID {
|
||||
|
||||
|
||||
class hermineConnect{
|
||||
private $VERSION = '1.16';
|
||||
private $VERSION = '1.17';
|
||||
private $MACHINENAME = 'default';
|
||||
private $hermineServer = 'https://api.thw-messenger.de';
|
||||
private $connectorID = "";
|
||||
@@ -472,17 +472,19 @@ class hermineConnect{
|
||||
$message->text = '[Dieser Inhalt wurde gelöscht.]';
|
||||
}
|
||||
}
|
||||
if($message->location->encrypted){
|
||||
$encryptet = $this->_decrypt_aes(base64_encode(hex2bin($message->location->latitude)), $conversation_key, hex2bin($message->location->iv));
|
||||
if($encryptet !== false)
|
||||
$message->location->latitude = $encryptet;
|
||||
else
|
||||
$message->location->latitude = '[!!decrypterror!!]';
|
||||
$encryptet = $this->_decrypt_aes(base64_encode(hex2bin($message->location->longitude)), $conversation_key, hex2bin($message->location->iv));
|
||||
if($encryptet !== false)
|
||||
$message->location->longitude = $encryptet;
|
||||
else
|
||||
$message->location->longitude = '[!!decrypterror!!]';
|
||||
if(isset($message->location->encrypted)){
|
||||
if($message->location->encrypted){
|
||||
$encryptet = $this->_decrypt_aes(base64_encode(hex2bin($message->location->latitude)), $conversation_key, hex2bin($message->location->iv));
|
||||
if($encryptet !== false)
|
||||
$message->location->latitude = $encryptet;
|
||||
else
|
||||
$message->location->latitude = '[!!decrypterror!!]';
|
||||
$encryptet = $this->_decrypt_aes(base64_encode(hex2bin($message->location->longitude)), $conversation_key, hex2bin($message->location->iv));
|
||||
if($encryptet !== false)
|
||||
$message->location->longitude = $encryptet;
|
||||
else
|
||||
$message->location->longitude = '[!!decrypterror!!]';
|
||||
}
|
||||
}
|
||||
$ret[] = $message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user