[1.7.7] demo.mysql.php - single quote not correct + solution

Locked
Gert
User
Posts:1
Joined:Sun Feb 25, 2007 10:09 pm
[1.7.7] demo.mysql.php - single quote not correct + solution

Post by Gert » Sun Feb 25, 2007 10:30 pm

In demo.mysql.php a single quote is not correctly handled. It gives an error on line 389 [if ($dir = opendir($startingdir)) {] when the dirname contains a single quote example - K:\Muziek\08 - Verzamel CD's -

The solution to this is to copy from demo.browse.php the next line:
UnifyMagicQuotes(false);
And also this function and function AddStripSlashesArray(), then all works.

There is only a little 'bug' in the retuning text in the input field, it shows:
K:Muziek�8 - Verzamel CD's
But now the database is filled.

James Heinrich
getID3() v1 developer
Posts:1477
Joined:Fri May 04, 2001 4:00 pm
Are you a spambot?:no
Location:Northern Ontario, Canada
Contact:

Re: [1.7.7] demo.mysql.php - single quote not correct + solu

Post by James Heinrich » Mon May 23, 2011 4:45 am

Issue does not appear to be present in v1.8.5 / v1.9.0, presumed already fixed.

Locked