Mlix / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

WINABSPATH only allows relative paths #347

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set your gallery folder outside the wp folder
2. Try to create a gallery

What is the expected output? What do you see instead?
I expected it to put a gallery in the specified folder,
not to try to creat a bunch of subfolders in my wp folder.

What version of the product are you using? On what operating system?
ngg 1.7.4 whit PHP 5.3.5-pl0-gentoo
"Linux chi.skogensvind.se 2.6.30-gentoo-r4 #3 SMP Wed Dec 23 10:58:11 CET 2009 
i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3600+ AuthenticAMD GNU/Linux"

Please provide any additional information below.
I fixed all concating whit WINABSPATH, to only happen if its a relative path.
I fixed permalinks to the image, as there is no direct URL
see patch file

Original issue reported on code.google.com by Pug...@gmail.com on 26 Feb 2011 at 8:44

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by alex.cologne on 4 Mar 2011 at 7:30