Filename not listed in Ver. 1.1.205

Discovered a bug? If not sure, please post question in the support forum.

Filename not listed in Ver. 1.1.205

Postby amalesh » Fri Jun 21, 2002 10:03 pm

Hi!

Today I installed the new version. I changed the two vars $base_dir and $enable_install and let kplaylist run. The login was no problem but then I recognized an empty file/dir list but with all the icons for the directories.

After changing the following two lines in the function checkchs($in) it worked again:

return htmlentities($in);
// return htmlspecialchars($in,ENT_QUOTES,"ISO-8859-1");

ciao, amalesh
amalesh
 
Posts: 9
Joined: Wed May 22, 2002 11:15 am

Re: Filename not listed in Ver. 1.1.205

Postby aba » Thu Jun 27, 2002 10:38 pm

amalesh wrote:Hi!

Today I installed the new version. I changed the two vars $base_dir and $enable_install and let kplaylist run. The login was no problem but then I recognized an empty file/dir list but with all the icons for the directories.

After changing the following two lines in the function checkchs($in) it worked again:

return htmlentities($in);
// return htmlspecialchars($in,ENT_QUOTES,"ISO-8859-1");

ciao, amalesh


How did you find the error? What version of PHP are you running?

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Re: Filename not listed in Ver. 1.1.205

Postby amalesh » Fri Jun 28, 2002 9:11 am

aageb wrote:How did you find the error? What version of PHP are you running?
Åge


I checked the code and found the two lines from above. (Or what do you mean with "How did you find..."?)
I'm running PHP 4.0.6 as a module under W2K.

ciao, amalesh
amalesh
 
Posts: 9
Joined: Wed May 22, 2002 11:15 am

Re: Filename not listed in Ver. 1.1.205

Postby aba » Fri Jun 28, 2002 10:19 am

amalesh wrote:
aageb wrote:How did you find the error? What version of PHP are you running?
Åge


I checked the code and found the two lines from above. (Or what do you mean with "How did you find..."?)
I'm running PHP 4.0.6 as a module under W2K.


What i meant was, did PHP log errors about the htmlspecialchars function, so you could comment it out? :)

Åge
aba
Site Admin
 
Posts: 2325
Joined: Wed May 08, 2002 9:19 am

Re: Filename not listed in Ver. 1.1.205

Postby amalesh » Fri Jun 28, 2002 11:20 am

aageb wrote:What i meant was, did PHP log errors about the htmlspecialchars function, so you could comment it out? :)
Åge


No. I just recognized the empty file and dir lists. There was no output (neither filename nor an error) in the browser or the page source-code.

After some "try and error" I found the solution described in my first posting.

ciao, amalesh
amalesh
 
Posts: 9
Joined: Wed May 22, 2002 11:15 am

Re: Filename not listed in Ver. 1.1.205

Postby Guest » Fri Jun 28, 2002 12:33 pm

amalesh wrote:
aageb wrote:What i meant was, did PHP log errors about the htmlspecialchars function, so you could comment it out? :)
Åge


No. I just recognized the empty file and dir lists. There was no output (neither filename nor an error) in the browser or the page source-code.

After some "try and error" I found the solution described in my first posting.

ciao, amalesh


That's strange. Really. As we are currently not able to find out why, we've switched back using htmlentities again.
Guest
 

Postby V@no » Sun Jun 30, 2002 5:38 pm

at the beginning kplaylist was using htmlentities, but it doesnt let display not english letters, and it displays 'codes', htmlspecialchars solved the problem.
V@no
 
Posts: 200
Joined: Sat May 25, 2002 11:27 pm


Return to Bugs



cron