Browse Source

upgrade http requests to https requests

roblib
ppound 3 years ago
parent
commit
3320c09cb1
  1. 2
      ebsco/lib/EBSCOConnector.php
  2. 4
      ebsco/lib/EBSCOResponse.php

2
ebsco/lib/EBSCOConnector.php

@ -108,7 +108,7 @@ class EBSCOConnector {
* *
* @global string * @global string
*/ */
private static $end_point = 'http://eds-api.ebscohost.com/EDSAPI/rest'; private static $end_point = 'https://eds-api.ebscohost.com/EDSAPI/rest';
/** /**

4
ebsco/lib/EBSCOResponse.php

@ -205,7 +205,7 @@ class EBSCOResponse {
$url = (string) $link->Url; $url = (string) $link->Url;
// If we have an empty url when type is pdflink then just return something so // If we have an empty url when type is pdflink then just return something so
// that the UI check for empty string will pass. // that the UI check for empty string will pass.
$url = empty($url) && $type == 'pdflink' ? 'http://content.ebscohost.com' : $url; $url = empty($url) && $type == 'pdflink' ? 'https://content.ebscohost.com' : $url;
$links[$type] = $url; $links[$type] = $url;
} }
} }
@ -579,7 +579,7 @@ class EBSCOResponse {
$url = (string) $link->Url; $url = (string) $link->Url;
// If we have an empty url when type is pdflink then just return something so // If we have an empty url when type is pdflink then just return something so
// that the UI check for empty string will pass. // that the UI check for empty string will pass.
$url = empty($url) && $type == 'pdflink' ? 'http://content.ebscohost.com' : $url; $url = empty($url) && $type == 'pdflink' ? 'https://content.ebscohost.com' : $url;
$links[$type] = $url; $links[$type] = $url;
} }
$value = $this->toHTML($record->FullText->Text->Value); $value = $this->toHTML($record->FullText->Text->Value);

Loading…
Cancel
Save