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

[FormatFactory] Allow lowercase format values #1967

Merged
merged 2 commits into from
Feb 9, 2021
Merged

[FormatFactory] Allow lowercase format values #1967

merged 2 commits into from
Feb 9, 2021

Conversation

VerifiedJoseph
Copy link
Contributor

@VerifiedJoseph VerifiedJoseph commented Feb 2, 2021

Updates create() and sanitizeFormatName() in FormatFactory to allow lowercase format values.

This means ?action=display&bridge=HaveIBeenPwned&order=dateAdded&item_limit=20&format=html works just like ?action=display&bridge=HaveIBeenPwned&order=dateAdded&item_limit=20&format=Html.

Format classes and their filenames must still start with an uppercase character (e.g: HtmlFormat.php & class HtmlFormat).

Closes #1854

@em92
Copy link
Contributor

em92 commented Feb 9, 2021

I made cd4f674 to accept format values like "hTML".

@em92 em92 merged commit 9e58735 into RSS-Bridge:master Feb 9, 2021
@em92
Copy link
Contributor

em92 commented Feb 9, 2021

gj!

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.

Lowercased format value returns "Format name invalid!"
2 participants