Menu ▾ ▴

#39 path bug of checkPath() in windows

open-fixed
nobody
None
5
2010-01-04
2007-09-25
Anonymous
No

in checkPath(), "\" will take the db's path error.
for example:
c:\data\test.db will save as c:datatest.db in config.db .
convert "\" to "/" can solve this problem.

code is:
function checkPath()
{
if(document.database.dbRealpath.value)
{
document.database.dbpath.value = document.database.dbRealpath.value.replace("\\", "/");
document.database.dbRealpath.value = '';
}
}

Discussion

  • HENNINOT frederic

    • status: open --> open-fixed
     

Log in to post a comment.