Announcement

#1 2014-01-22 09:10:23

JanisV
Member
2013-09-25
85

Disable sync special subfolders

Hi!
Default config $conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_.]+$/' enable sync Linux hidden folder. I can change this regexp to '/^[a-zA-Z0-9-_]+$/', but Piwigo still look into hidden folder. Examle:
I have files galleries/.recicle/photo/photo1.jpg and galleries/.recicle/photo2.jpg. After sync album photo and photo1.jpg present in Piwigo.

Another problem with that - weak protection from non-latin symbols. galleries/сочи 2014/photo/photo1.jpg will be sync.

Last edited by JanisV (2014-01-23 08:44:18)

Offline

 

#2 2014-01-24 10:34:42

flop25
Piwigo Team
2006-07-06
7037

Re: Disable sync special subfolders

Hi

JanisV wrote:

Another problem with that - weak protection from non-latin symbols. galleries/сочи 2014/photo/photo1.jpg will be sync.

what you mean exactly?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2014-01-24 12:00:34

JanisV
Member
2013-09-25
85

Re: Disable sync special subfolders

Here two problems. When I set $conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_.]+$/' I think that all files and subfolders in galleries/сочи 2014 will be ignored. But realy sync add file galleries/сочи 2014/photo/photo1.jpg to Piwigo.
And that is another problem - photo1.jpg not shown. May be folder 'сочи 2014' added with errors (look at [Forum, topic 22468] Cyrillic in galleries names and sync).

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact