Improved url detection for redirects

This commit is contained in:
Michael 2018-11-30 11:27:17 +00:00
parent 1bd38d1f10
commit 4a1f9a9bdd
2 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@ class Magic extends BaseModule
}
if (!$cid) {
Logger::log('No contact record found: ' . print_r($_REQUEST, true), Logger::DEBUG);
Logger::log('No contact record found: ' . json_encode($_REQUEST), Logger::DEBUG);
// @TODO Finding a more elegant possibility to redirect to either internal or external URL
$a->redirect($dest);
}