Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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.
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
7 checks passed
@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