mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-20 01:44:15 +00:00
fixed debug injection
This commit is contained in:
parent
7cebd30eb5
commit
e8b43e60db
@ -66,7 +66,7 @@ function fetch_external ( $bind_id, $min_age, $ua_string )
|
|||||||
curl_setopt ( $curl, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE );
|
curl_setopt ( $curl, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE );
|
||||||
if ( isset( $ua_string ) )
|
if ( isset( $ua_string ) )
|
||||||
curl_setopt($curl, CURLOPT_USERAGENT, $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 );
|
$ics = curl_exec ( $curl );
|
||||||
$info = curl_getinfo ( $curl );
|
$info = curl_getinfo ( $curl );
|
||||||
if ( $info['http_code'] === 304 || (isset($info['filetime']) && $info['filetime'] != -1 && new DateTime("@" . $info['filetime']) <= $local_ts )) {
|
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'] );
|
dbg_error_log("external", "external resource changed, re importing" . $info['filetime'] );
|
||||||
}
|
}
|
||||||
else {
|
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_NOBODY, false );
|
||||||
curl_setopt ( $curl, CURLOPT_HEADER, false );
|
curl_setopt ( $curl, CURLOPT_HEADER, false );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user