owa: htmlentity encoding encountered in authentication workflow (possibly introduced during Apache mod_rewrite with QSA flag)
This commit is contained in:
parent
eedfb7de32
commit
e4ed0f8acd
@ -19,7 +19,11 @@ class Magic extends \Zotlabs\Web\Controller {
|
||||
$rev = ((x($_REQUEST,'rev')) ? intval($_REQUEST['rev']) : 0);
|
||||
$owa = ((x($_REQUEST,'owa')) ? intval($_REQUEST['owa']) : 0);
|
||||
$delegate = ((x($_REQUEST,'delegate')) ? $_REQUEST['delegate'] : '');
|
||||
|
||||
|
||||
// Apache(?) appears to perform an htmlentities() operation on this variable
|
||||
|
||||
$dest = html_entity_decode($dest);
|
||||
|
||||
$parsed = parse_url($dest);
|
||||
if(! $parsed) {
|
||||
if($test) {
|
||||
@ -139,6 +143,9 @@ class Magic extends \Zotlabs\Web\Controller {
|
||||
|
||||
if($owa) {
|
||||
|
||||
$dest = strip_zids($dest);
|
||||
$dest = strip_query_param($dest,'f');
|
||||
|
||||
$headers = [];
|
||||
$headers['Accept'] = 'application/x-zot+json' ;
|
||||
$headers['X-Open-Web-Auth'] = random_string();
|
||||
|
Reference in New Issue
Block a user