Skip to content

Commit

Permalink
Update apiFunctions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GlazerMann authored Feb 1, 2024
1 parent 8de898c commit 0a147b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Check failure on line 608 in apiFunctions.php

View workflow job for this annotation

GitHub Actions / build

TaintedSSRF

apiFunctions.php:608:33: TaintedSSRF: Detected tainted network request (see https://psalm.dev/253)
for ($i = 0; $i < 2; $i++) {
$raw_xml = (string) @curl_exec($ch);
if (!$raw_xml) {
Expand Down

0 comments on commit 0a147b9

Please sign in to comment.