Gallery stopped following symlinks ?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
alembiq
New Member
New Member
Posts: 8
Joined: Tue May 10, 2011 10:06 am

Gallery stopped following symlinks ?

Post 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?
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm

Re: Gallery stopped following symlinks ?

Post 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.
alembiq
New Member
New Member
Posts: 8
Joined: Tue May 10, 2011 10:06 am

Re: Gallery stopped following symlinks ?

Post by alembiq »

it's similar to shortcut in windows
http://en.wikipedia.org/wiki/Symbolic_link
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Gallery stopped following symlinks ?

Post 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.
Locked

Return to “Modules/Add-Ons”