Galleryadd.pl NG underscores and dashes

fgn

Joined: 2006-04-03
Posts: 2
Posted: Mon, 2006-04-03 06:47

Is this a bug? Underscores and dashes seem to be replaced with spaces.
The same things happens with filenames as with the directory examples below.

# /usr/local/bin/galleryadd.pl -G 2 -g http://host -u admin -p pass -c test-1-2_3
System http://host/main.php [G2]
Login: admin [OK]
Album: fetching list [OK]
Check: test-1-2_3 [OK]
Create test-1-2_3 (232) [OK]

# /usr/local/bin/galleryadd.pl -G 2 -g http://host -u admin -p pass -l
System http://host/main.php [G2]
Login: admin [OK]
Album: fetching list [OK]
Album: 7 (Gallery)
Album: 232 (Test 1 2 3)

# perl -v
This is perl, v5.8.6 built for i386-linux-thread-multi
*snip*

# /usr/local/bin/galleryadd.pl
Error: -p option required - specify password
galleryadd.pl v2.00 URL: http://iainlea.dyndns.org/software/galleryadd
*snip*

 
richlv

Joined: 2004-07-02
Posts: 24
Posted: Thu, 2006-04-06 16:11

it is a feature you can not turn normally off :)

edit the script, look at line 1154.
it replaces dashes and underscores with spaces.
to exclude on of them, remove it from square brackets. to disable replacing of both, just comment the line.

ps next line converts first letters to uppercase, you might want to comment that out, too ;)

 
fgn

Joined: 2006-04-03
Posts: 2
Posted: Thu, 2006-04-06 19:22

That worked great, Thank You.