Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 28. Mar 2024, 21:14

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 6. Apr 2013, 06:49 
Offline

Joined: 6. Apr 2013, 06:29
Posts: 3
Code:
The request has invalid input. If you where trying to hack TWG - try again ;).

This is the exact error message, and it occurs after I submit info to add a new user. I am using version 1.8.9, and all else appears to work just fine. Directories and files that should be writable are writable, info.php returns mostly green except for the two mpeg entries (no matter there though), and two of the 'Recommended Settings' - Display Errors and Magic Quotes GPC, which are both 'off' and recommended to be 'on'. I don't know if this relates to the issue at hand or not..

This is a link to an earlier thread about a near exact problem.
Adding Users

Maybe this is useful info - TWG is in an iframe in my website. The URL is http://somdcomputerguy.com/index.php?p=gallery if you need to see this.

And last but not least - Great script! Thanks!


Top
 Profile  
 
PostPosted: 6. Apr 2013, 15:19 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
What is the home directory when you try to add a user?

there are no ../ allowed. The root directory is the main twg directory.
I just saw that if the basedir is set to e.g. ../pictures this is the default in this field which is wrong!
'pictures' is correct!

Best, Michael


Top
 Profile  
 
PostPosted: 6. Apr 2013, 15:42 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The default should now be fine in TWG 1.9 ;).

.. is not allowed because this way you could get outside the TWG directory.

Best, Michael


Top
 Profile  
 
PostPosted: 6. Apr 2013, 17:24 
Offline

Joined: 6. Apr 2013, 06:29
Posts: 3
The directory and it's subdirs for the the pictures are outside the TWG directory, so I thought that .. did need to be in the path. However, I removed that part of the path and all is well now. Thanks.


Top
 Profile  
 
PostPosted: 6. Apr 2013, 20:46 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
right - because this I fixed this internally with the path. But I forgot to fix the default.

So you only added the last directory?

Best, Michael


Top
 Profile  
 
PostPosted: 6. Apr 2013, 22:36 
Offline

Joined: 6. Apr 2013, 06:29
Posts: 3
See, my 'bottomline' file path root, or 'DocRoot' is "/myhoststuff/myusername/htdocs". This is the directory that my domain name leads to. TWG is here, "/myhoststuff/myusername/htdocs/TWG". The pictures are here, "/myhoststuff/myusername/htdocs/pictures". This is in Admin|Additional Settings - $basedir="../pictures";. Now, the 'Home Directory' in User Admin|Edit is "/pictures/somesubdir", and all seems to be working as expected! To note, the only change to solve the initial issue was to remove the ".." from the beginning of the 'Home Directory' path.


Top
 Profile  
 
PostPosted: 6. Apr 2013, 22:56 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
That is what I thought. So in 1.9 the initial directory will be correct.

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy