Page 1 of 1

Gallery stopped following symlinks ?

Posted: Fri Jul 18, 2014 9:11 am
by alembiq
hi,
i'm using gallery for some time, but since i updated to version 2.0 it stopped following symlinks :(

i have cmsms and the pictures in non related folders and i all the gallery folders are just symbolic links (linux ln command)
it was working before but since the update it just displaying:
The directory 'Gallery/reportage/2013darktower2' does not exist. Check your parameters.

i've tried to remove the symlink and move the folder with the pictures there instead and it's working - but it's not a solution i can use :(

is there any way to make Gallery follow symlinks?

Re: Gallery stopped following symlinks ?

Posted: Fri Jul 18, 2014 6:02 pm
by Jos
what are symlinks??

It might be caused by a change in 2.0 to make Gallery more secure. There is a check if the dir really exists and is below the default Gallery dir.

You can only use values for the dir parameter that are shown in the Gallery admin, the first page with galleries list.

Re: Gallery stopped following symlinks ?

Posted: Mon Jul 21, 2014 4:56 am
by alembiq
it's similar to shortcut in windows
http://en.wikipedia.org/wiki/Symbolic_link

Re: Gallery stopped following symlinks ?

Posted: Mon Jul 21, 2014 8:03 am
by velden
I guess the use of realpath in CleanFile function of class.Gallery_utils.php causes this effect.

Maybe Jos can think of an even smarter way to work around this issue.