MantisBT - Piwigo
View Issue Details
0000414Piwigoconfigurationpublic2006.06.12 21:582012.03.10 22:37
Eric B 
plg 
normalfeaturealways
closedfixed 
1.6.0RC2 
2.4.0RC22.4.0RC2 
any
Apache 1.3.x
0000414: synchronization, set more permitted characters for file names
I have done again the change I made in my old 1.3 about the forbidden characters in filename. In the 1.6.0RC2, it is ca. the lines 243 and 435 of site_update.php, where I replaced the regex by:
l.243 if ( preg_match( '/^[a-zA-Z0-9-_.+&(),]+$/', $dir ) )
l.435 if (!preg_match( '/^[a-zA-Z0-9-_.+&(),]+$/', $filename ) )

What do you think about the possibility to set this characters in a panel in the administration?
No tags attached.
Issue History
2006.06.12 21:58Eric BNew Issue
2006.06.12 21:58Eric Bbrowser => any
2006.06.12 21:58Eric BWeb server => Apache 1.3.x
2008.07.05 02:22mathiasmNote Added: 0002285
2009.05.13 16:50Eric BNote Added: 0002596
2009.05.13 23:37mathiasmNote Added: 0002597
2012.03.10 22:33plgSummaryAdd a possibility to set more autorized characters. => synchronization, set more autorized characters for file names
2012.03.10 22:33plgStatusnew => assigned
2012.03.10 22:33plgAssigned To => plg
2012.03.10 22:34svnCheckin
2012.03.10 22:34svnNote Added: 0006107
2012.03.10 22:35plgStatusassigned => closed
2012.03.10 22:35plgResolutionopen => fixed
2012.03.10 22:35plgFixed in Version => 2.4.0RC2
2012.03.10 22:35plgTarget Version => 2.4.0RC2
2012.03.10 22:37plgSummarysynchronization, set more autorized characters for file names => synchronization, set more permitted characters for file names

Notes
(0002285)
mathiasm   
2008.07.05 02:22   
See also http://forum.phpwebgallery.net/viewtopic.php?id=13423 [^] where utf-8 and nowadays systems are more practical.
(0002596)
Eric B   
2009.05.13 16:50   
still doing the same change in piwigo 2.0.2
Am I the only one who likes to have more possible characters in the filenames?
(0002597)
mathiasm   
2009.05.13 23:37   
Eric, you may not, but some of your proposed chars are badly supported under *niX.
Maybe we can define a box where one can add more chars than the default.
(0006107)
svn   
2012.03.10 22:34   
[Subversion] r13527 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
feature 414 (yes, a 6 years old request): ability to define the list of
permitted characters in file/directory names for synchronization.