issue to display files with &,space or accentuated in their filename #777

Open
opened 2026-10-05 00:16:57 +02:00 by adam · 1 comment
Owner

There is an issue to display miniatures and to display the miniatures of a file containing a special character & in its filename

the same issue is visible when trying to display it in mobile apps

also can occure when trying to access the api:

https://album/i.php?/galleries/mariage/pwg_representative/Claire_&_Jean-Philippe_Slideshow-sq.jpg&b=1523873519

Also to note there seems to have few other issue to url encode the strings, we can see the same situation if the filename or the folder containing the file has accentuated characters or spaces.

i.php?/galleries/2018/grossesse 2016-f\u00e9vrier 2017/1D3A45315-sq.jpg&b=1523671987

I have field a bug against piwigo mobile and some work has been done to check the string for space and accentuaed characters, but the ampersand & is I thing a signal that this all should be done by the main software itself. They should be urlencoded before being sent to API

There is an issue to display miniatures and to display the miniatures of a file containing a special character & in its filename the same issue is visible when trying to display it in mobile apps also can occure when trying to access the api: https://album/i.php?/galleries/mariage/pwg_representative/Claire_&_Jean-Philippe_Slideshow-sq.jpg&b=1523873519 Also to note there seems to have few other issue to url encode the strings, we can see the same situation if the filename or the folder containing the file has accentuated characters or spaces. i.php?\/galleries\/2018\/grossesse 2016-f\u00e9vrier 2017\/1D3A45315-sq.jpg&b=1523671987 I have field a bug against piwigo mobile and some work has been done to check the string for space and accentuaed characters, but the ampersand & is I thing a signal that this all should be done by the main software itself. They should be urlencoded before being sent to API <!-- github-sync-id:314709847 -->
Author
Owner

For some reasons, when $conf['original_url_protection'] = 'images' or 'all'; is activated the URLs returned by the Piwigo server contain &amp; instead of & (since Piwigo v2.9.2 to my knowledge). So for the moment, Piwigo iOS replaces &amp; with & in the provided URLs for preventing too big issues.

For some reasons, when `$conf['original_url_protection'] = 'images' or 'all';` is activated the URLs returned by the Piwigo server contain `&amp;` instead of `&` (since Piwigo v2.9.2 to my knowledge). So for the moment, Piwigo iOS replaces `&amp;` with `&` in the provided URLs for preventing too big issues. <!-- github-comment-id:381743985 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#777