#1 2003-06-10 06:22:27

fractaloon
Member
San Francisco, CA
2003-06-10
2

Directory Names With Special Characters

Hi,
I found that I was not able to use directly names with apostrophes so I made 2 changes that seem to have worked.

1st.. I modified admin/thumbnail.php
I added line 281...
$HTTP_GET_VARS['dir'] = stripslashes($HTTP_GET_VARS['dir']);

right before
$images = get_images_without_thumbnail( $HTTP_GET_VARS['dir'] );

2nd, I modified admin/miseajour.php
I modifited line 81 to...
$sub_rep[$i++] = addslashes($file);

I hope this is useful
Albert

Offline

 

#2 2003-06-10 07:44:05

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13934

Re: Directory Names With Special Characters

thanks, I'll try it. But, I'm not so sure it's a good idea since some internet browsers (like IE) doesn't support special caracters in URL, and pictures are accessible thanks to an URL, so...

Offline

 

#3 2003-06-12 07:54:28

fractaloon
Member
San Francisco, CA
2003-06-10
2

Re: Directory Names With Special Characters

hehe, I didn't think of that.  I made the change only so I can use an apostrophe  '

Since I do not allow users to upload and only I can make new folders it does not seem to cause any other problems.  I know better than to try and make a folder called ::::pictures::::   :D

I think it can be a problem if users are allowed to create folders because they will try all sorts of strange stuff.

Albert

Offline

 

Board footer

Powered by FluxBB

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