From 0a147b907162f5e5ad57e750739d95e57ea78436 Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Thu, 1 Feb 2024 08:54:56 -0600 Subject: [PATCH] Update apiFunctions.php --- apiFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiFunctions.php b/apiFunctions.php index ce1ae693ad..f555259cf0 100644 --- a/apiFunctions.php +++ b/apiFunctions.php @@ -605,7 +605,7 @@ function query_crossref(string $doi) : ?object { set_time_limit(120); $doi = str_replace(DOI_URL_DECODE, DOI_URL_ENCODE, $doi); $url = "https://www.crossref.org/openurl/?pid=" . CROSSREFUSERNAME . "&id=doi:$doi&noredirect=TRUE"; - $curl_setopt($ch, CURLOPT_UR, $url); + curl_setopt($ch, CURLOPT_URL, $url); for ($i = 0; $i < 2; $i++) { $raw_xml = (string) @curl_exec($ch); if (!$raw_xml) {