Made message signing in Cryptography use SHA512 as the message content for... #1

Closed
netkas wants to merge 421 commits from master into dev
3 changed files with 17 additions and 3 deletions
Showing only changes of commit 6c8cbfddec - Show all commits

View file

@ -3,4 +3,19 @@
require 'ncc';
import('net.nosial.socialbox');
try
{
\Socialbox\Socialbox::handleRpc();
}
catch(Exception $e)
{
http_response_code(500);
if(\Socialbox\Classes\Configuration::getSecurityConfiguration()->isDisplayInternalExceptions())
{
print_r($e);
return;
}
print('An internal error occurred');
}

View file

@ -30,7 +30,7 @@ class CaptchaManager
}
$answer = Utilities::randomString(6, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789');
$current_time = (new DateTime())->setTimestamp(time());
$current_time = (new DateTime())->setTimestamp(time())->format('Y-m-d H:i:s');
if(!self::captchaExists($peer_uuid))
{

View file

@ -30,7 +30,6 @@
{
Logger::getLogger()->error('Failed to parse the client request', $e);
http_response_code($e->getCode());
print($e->getMessage());
return;
}