Windows path space error

Think you found a bug in getID3()? Post here with details.

Windows path space error

Postby BradZacher » Thu Feb 18, 2010 5:22 am

hey,

brad.zacher@gmail.com
version 1.7.9

after a while trying to fix this, i realised the problem.
when you include the getid3.php file to use getid3, if your path has spaces in it, the program returns an error and asks you to use 8dot3 path names.
however, even if you do this, it won't work.

i even tried hopping into getid3.php and hard coding line 114 from
$helperappsdir = GETID3_INCLUDEPATH.'..'.DIRECTORY_SEPARATOR.'helperapps'; // must not have any space in this path
to
$helperappsdir = "F:/MYSTUF~2/MYSTUF~1/HOMESITE/SITE/B/EXTENS~1/HELPER~1";
and it still spat the error out at me.

then i noticed in line 118 you've used the realpath() function to expand any "../" and what have you in the path so that you can search it for spaces.
HOWEVER, if you're using realpath(), it'll convert the 8dot3 path to a standard path, and hence ignoring the fact that you've converted the path.

so yeah.. just thought i'd tell you this, you've probably been told it but eh.

-Brad
BradZacher
User
 
Posts: 1
Joined: Thu Feb 18, 2010 5:13 am

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron