Skip to content

Fix: Ensure $time is set from innertext when datetime attribute is not found#4111

Merged
dvikan merged 1 commit intoRSS-Bridge:masterfrom
Albatrosicks:CssSelectorComplexBridge]-Fix-time-assignment-when-`datetime`-attribute-is-missing
May 19, 2024
Merged

Fix: Ensure $time is set from innertext when datetime attribute is not found#4111
dvikan merged 1 commit intoRSS-Bridge:masterfrom
Albatrosicks:CssSelectorComplexBridge]-Fix-time-assignment-when-`datetime`-attribute-is-missing

Conversation

@Albatrosicks
Copy link

This commit addresses a bug where the $time variable is not set from the innertext of the $time_element when the datetime attribute is not found. The previous implementation only checked if $time was null or an empty string, which did not cover all cases where the datetime attribute might be missing. By using the empty() function, we ensure that $time is correctly set from the innertext when the datetime attribute is not present.

… is not found

This commit addresses a bug where the $time variable is not set from the innertext of the $time_element when the datetime attribute is not found. The previous implementation only checked if $time was null or an empty string, which did not cover all cases where the datetime attribute might be missing. By using the empty() function, we ensure that $time is correctly set from the innertext when the datetime attribute is not present.
@github-actions
Copy link

Pull request artifacts

Bridge Context Status
CssSelectorComplex 1 untitled (current) Bridge returned error 404! (19862)
Type: HttpException
Message: https://example.com/blog/ resulted in 404 Not Found <!doctype html>
CssSelectorComplex 1 untitled (pr) Bridge returned error 404! (19862)
Type: HttpException
Message: https://example.com/blog/ resulted in 404 Not Found <!doctype html>

last change: Sunday 2024-05-19 08:43:48

@dvikan dvikan merged commit dc199eb into RSS-Bridge:master May 19, 2024
@dvikan
Copy link
Contributor

dvikan commented May 19, 2024

@LarsStegman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants