summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorericm <ericm>2000-10-19 01:05:01 (GMT)
committerericm <ericm>2000-10-19 01:05:01 (GMT)
commit55922277f67cf63256166dd956c4e326c63c8228 (patch)
treecc41d0bb6d2548029073bf6abdddf4ef58d68044 /library
parent25182b793c713b9b7c89b31a6cd22fafa6d2bbfc (diff)
downloadtk-55922277f67cf63256166dd956c4e326c63c8228.zip
tk-55922277f67cf63256166dd956c4e326c63c8228.tar.gz
tk-55922277f67cf63256166dd956c4e326c63c8228.tar.bz2
* library/tkfbox.tcl (OkCmd): Applied patch from [Bug: 6365],
which adds safety for directory names containing spaces or which are non-lists.
Diffstat (limited to 'library')
-rw-r--r--library/tkfbox.tcl7
1 files changed, 3 insertions, 4 deletions
diff --git a/library/tkfbox.tcl b/library/tkfbox.tcl
index ab802f8..b8b3322 100644
--- a/library/tkfbox.tcl
+++ b/library/tkfbox.tcl
@@ -11,7 +11,7 @@
# files by clicking on the file icons or by entering a filename
# in the "Filename:" entry.
#
-# RCS: @(#) $Id: tkfbox.tcl,v 1.23 2000/08/29 20:17:12 ericm Exp $
+# RCS: @(#) $Id: tkfbox.tcl,v 1.24 2000/10/19 01:05:01 ericm Exp $
#
# Copyright (c) 1994-1998 Sun Microsystems, Inc.
#
@@ -1626,7 +1626,7 @@ proc ::tk::dialog::file::OkCmd {w} {
set text [lindex $text 0]
set file [::tk::dialog::file::JoinFile $data(selectPath) $text]
if {[file isdirectory $file]} {
- ::tk::dialog::file::ListInvoke $w $text
+ ::tk::dialog::file::ListInvoke $w [list $text]
return
}
}
@@ -1699,8 +1699,7 @@ proc ::tk::dialog::file::ListInvoke {w text} {
return
}
- set file [::tk::dialog::file::JoinFile $data(selectPath) \
- [lindex $text 0]]
+ set file [::tk::dialog::file::JoinFile $data(selectPath) [lindex $text 0]]
set class [winfo class $w]
if {[string equal $class TkChooseDir] || [file isdirectory $file]} {