You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
basename() is locale dependent so before it we must setlocale for special strings.
Steps to reproduce: 1. Edit
change in file include/config_default.inc.php line 743
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-.]+$/';
to
$conf['sync_chars_regex'] = '/^[a-zA-Z??ó????????Ó??????0-9-. (),%+-~#@!*]+$/';
2. Create dir:
mkdir /PATH/TO/PIWIGO/galleries/?uk /PATH/TO/PIWIGO/galleries/luk /PATH/TO/PIWIGO/galleries/ku?
3. Synchronize.
Now You can see following albums in piwigo: uk luk ku?
So it ignores special characters in first positions.
The problem is in admin/site_update.php line 210.
To solve it you must add one line before it, for my language it is:
Dozens of forum threads resulting from confusion about what is and
what is not (and why not) allowed in sync_chars_regex indicate
there is some explanation needed. Do this in the default config so
that someone actually might read it.
Also see issues Piwigo#250Piwigo#218Piwigo#201Piwigo#323
Reported by gospogied on 2 Oct 2012 07:29
Version: 2.4.4
basename() is locale dependent so before it we must setlocale for special strings.
Steps to reproduce: 1. Edit
change in file include/config_default.inc.php line 743
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-.]+$/';
to
$conf['sync_chars_regex'] = '/^[a-zA-Z??ó????????Ó??????0-9-. (),%+-~#@!*]+$/';
2. Create dir:
mkdir /PATH/TO/PIWIGO/galleries/?uk /PATH/TO/PIWIGO/galleries/luk /PATH/TO/PIWIGO/galleries/ku?
3. Synchronize.
Now You can see following albums in piwigo: uk luk ku?
So it ignores special characters in first positions.
The problem is in admin/site_update.php line 210.
To solve it you must add one line before it, for my language it is:
setlocale(LC_ALL, 'pl_PL.UTF-8');
$dir = basename($fulldir);
Additional information: Fixed by hand, but should be automated and probably basenames in other places also should be setlocaled first.
Piwigo Bugtracker #2758
The text was updated successfully, but these errors were encountered: