URL-encode spaces as %20 in picon HTTP request URLs#497
Merged
Conversation
Member
|
This is great, thanks for the contribution. If you like it released, please add a commit with the micro version number incremented in addon.xml.in and add a changelog entry. |
phunkyfish
approved these changes
May 7, 2026
When fetching picons from the web interface, channel names containing spaces were used as-is in the HTTP URL, causing 400 Bad Request errors. URL-encode spaces as %20 in both code paths: - Channel::CreateIconPath() (UseOnlinePicons without OpenWebIf path) - Channels::LoadChannelsExtraData() (UseOpenWebIfPiconPath) - Bump version to 22.3.6 and add changelog entry
phunkyfish
approved these changes
May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix picon HTTP requests failing with 400 Bad Request when channel names contain spaces.
Closes #496
Problem
When fetching picons from the web interface, the addon constructs HTTP URLs using the raw picon path without URL-encoding spaces. Web servers reject these malformed URLs with a 400 Bad Request error, leaving all channels with spaces in their name without an icon.
This affects both code paths:
Channel::CreateIconPath()— used when Use OpenWebIf picon path is disabledChannels::LoadChannelsExtraData()— used when Use OpenWebIf picon path is enabledFix
URL-encode spaces as
%20before constructing the picon URL in both code paths.src/enigma2/data/Channel.cppsrc/enigma2/Channels.cpp