Hi there,
If I drag and drop a photo into piwigo I am getting any single quotes in the filename turned into \' in the database. I need them to stay as single quotes as the ordering of the photos depends on the name and most of my already-loaded photos have single quotes in the name (and the database).
I've tried all sorts with the LocalFiles editor and currently have this to try and help with the parsing:
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_. \'()]+$/';
The actual photo is displayed with \' which is nearly right. I could live with the display being ok but not having the back slash in front of it, but ideally would have the database correct too.
My environment is this:
Piwigo 16.4.0 Check for upgrade
Installed on 14 February 2023, 3 years 8 months 2 weeks ago
Operating system: Linux
Container info: (unofficial) Unknown
PHP: 8.1.34 (Show info) [2026-10-29 08:22:39]
MySQL: 10.6.28-MariaDB-cll-lve-log [2026-10-29 08:22:39]
Graphics Library: GD 2.3.3
Cache size 0 Mo calculated 1 year ago Refresh
Any help appreciated please.
Best wishes
Gordon