Tk Library Source Code

View Ticket
Login
Ticket UUID: 1525172
Title: error in fileutil::jail
Type: Bug Version: None
Submitter: ramsan Created on: 2006-07-19 10:47:13
Subsystem: fileutil Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2006-07-19 23:23:44
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2006-07-19 16:23:44
Description:
 fileutil::jail basedir "file with spaces"
----> C:/Documents and Settings/ramsan/Mis documentos/
basedir/file/with/spaces

the correction seems to be. change:

 return [eval [linsert [LexNormalize $filename] 0 \
                file join [pwd] $jail]]

to:

 return [eval [linsert [file split [LexNormalize 
$filename]] 0 \
                file join [pwd] $jail]]
User Comments: andreas_kupries added on 2006-07-19 23:23:44:
Logged In: YES 
user_id=75003

Thanks. Yes, your correction is right. I have accepted it,
and extended the testsuite as well.