fixed debug injection

This commit is contained in:
linda.fliss 2022-02-18 15:25:32 +01:00
parent 7cebd30eb5
commit e8b43e60db

View File

@ -66,7 +66,7 @@ function fetch_external ( $bind_id, $min_age, $ua_string )
curl_setopt ( $curl, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE );
if ( isset( $ua_string ) )
curl_setopt($curl, CURLOPT_USERAGENT, $ua_string);
dbg_error_log("external", "checking external resource for remote changes " . $row->external_url );
dbg_error_log("external", "checking external resource for remote changes %s ", $row->external_url );
$ics = curl_exec ( $curl );
$info = curl_getinfo ( $curl );
if ( $info['http_code'] === 304 || (isset($info['filetime']) && $info['filetime'] != -1 && new DateTime("@" . $info['filetime']) <= $local_ts )) {
@ -80,7 +80,7 @@ function fetch_external ( $bind_id, $min_age, $ua_string )
dbg_error_log("external", "external resource changed, re importing" . $info['filetime'] );
}
else {
dbg_error_log("external", "fetching external resource for the first time " . $row->external_url );
dbg_error_log("external", "fetching external resource for the first time %s ", $row->external_url );
}
curl_setopt ( $curl, CURLOPT_NOBODY, false );
curl_setopt ( $curl, CURLOPT_HEADER, false );