Skip to content

Commit

Permalink
Fixed issue #5
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson-edalex committed Jul 20, 2018
1 parent 97ca6c6 commit 07444f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions equella_search_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@
}

foreach( $searchResultsXml->nodeList('/results/result') as $result ) {
$itemUuid = $searchResultsXml->nodeValue('xml/item/@id', $result);
$itemUrl = $searchResultsXml->nodeValue('xml/item/url', $result);
$itemFile = $searchResultsXml->nodeValue('xml/item/attachments/attachment/file', $result);
$attUuid = $searchResultsXml->nodeValue('xml/item/attachments/attachment/uuid', $result);
$itemUuid = filter_var($searchResultsXml->nodeValue('xml/item/@id', $result), FILTER_SANITIZE_STRING);
$itemUrl = filter_var($searchResultsXml->nodeValue('xml/item/url', $result), FILTER_SANITIZE_URL);
$itemFile = filter_var($searchResultsXml->nodeValue('xml/item/attachments/attachment/file', $result), FILTER_SANITIZE_STRING);
$attUuid = filter_var($searchResultsXml->nodeValue('xml/item/attachments/attachment/uuid', $result), FILTER_SANITIZE_STRING);
if ($itemFile == '') {
$itemFullUrl = $itemUrl . 'viewdefault.jsp';
} else {
Expand Down

0 comments on commit 07444f9

Please sign in to comment.