summaryrefslogtreecommitdiffstats
path: root/library/tkfbox.tcl
diff options
context:
space:
mode:
authorericm <ericm>2000-10-19 01:05:01 (GMT)
committerericm <ericm>2000-10-19 01:05:01 (GMT)
commitf1d459cac2561928d3c8d66e71446c719e066002 (patch)
treecc41d0bb6d2548029073bf6abdddf4ef58d68044 /library/tkfbox.tcl
parentcb6ca58a8be8fa730d314ea08977a728f6a6fdf5 (diff)
downloadtk-f1d459cac2561928d3c8d66e71446c719e066002.zip
tk-f1d459cac2561928d3c8d66e71446c719e066002.tar.gz
tk-f1d459cac2561928d3c8d66e71446c719e066002.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/tkfbox.tcl')
-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]} {