use regex... just in case

This commit is contained in:
HB9HIL
2025-07-18 19:56:32 +02:00
parent eeecb5b20d
commit 6c8ebf4a0e

View File

@@ -320,9 +320,7 @@ class Lotw extends CI_Controller {
}
}
$pos = strpos($result, "<!-- .UPL. accepted -->");
if ($pos === false) {
if (!preg_match('/<!-- \.UPL\.\s+accepted -->/', $result)) {
// Upload of TQ8 Failed for unknown reason
echo $station_profile->station_callsign." (".$station_profile->station_profile_name."): Upload Failed - ".curl_strerror(curl_errno($ch))." (".curl_errno($ch).")<br>";
$this->Lotw_model->last_upload($data['lotw_cert_info']->lotw_cert_id, "Upload failed");