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

version_compare raise exception if param is not a string #6155

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

cn-tools
Copy link
Contributor

@cn-tools cn-tools commented Mar 4, 2024

In file "metadata.json" of extensions it's possible that the data of version is not a string. In this case the check of the version raises an exception. see issue

Ex. Auto-Refresh-Extension

Maybe the file generate.php could fix this issue with additional line '$metadata['version'] = strval($metadata[' version']);' before line 58 instead of this PR.

Pull request checklist:

  • clear commit messages (i hope so)
  • code manually tested
  • unit tests written (optional if too hard)
  • documentation updated

… a string. in this case the check of the version raise an exception.
@Alkarex
Copy link
Member

Alkarex commented Mar 4, 2024

Good idea to make a fix in generate.php. Could you please do so? And then we can assess whether we also need something more in this PR

@Alkarex Alkarex merged commit 9711f14 into FreshRSS:edge Mar 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants