Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Auth.remote cms_functions: when looking for the hidden files, make su…
Browse files Browse the repository at this point in the history
…re to use ".//" to search only below the current node.
  • Loading branch information
cdujeu committed Oct 21, 2013
1 parent 67dae41 commit ce24725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/auth.remote/cms_auth_functions.php
Expand Up @@ -93,7 +93,7 @@ function joomla_remote_auth($host, $uri, $login, $pass, $formId = "")
}
$form = $nodes->item(0);
$postUri = $form->getAttribute("action");
$hiddens = $xPath->query('//input[@type="hidden"]', $form);
$hiddens = $xPath->query('.//input[@type="hidden"]', $form);
foreach ($hiddens as $hiddenNode) {
$postData[$hiddenNode->getAttribute("name")] = $hiddenNode->getAttribute("value");
}
Expand Down Expand Up @@ -133,7 +133,7 @@ function drupal_remote_auth($host, $uri, $login, $pass, $formId = "")
}
$form = $nodes->item(0);
$postUri = $form->getAttribute("action");
$hiddens = $xPath->query('//input[@type="hidden"]', $form);
$hiddens = $xPath->query('.//input[@type="hidden"]', $form);
AJXP_Logger::debug("Carry on Drupal hiddens ". $hiddens->length);
$postData = array(
"name" => $login,
Expand Down

0 comments on commit ce24725

Please sign in to comment.