1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/tk/lib/multi-tk.rb: security fix.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2006-07-11 09:04:00 +00:00
parent 6f535f34c5
commit 2ea953a7e7
3 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Tue Jul 11 18:00:57 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: security fix.
Tue Jul 11 17:28:08 2006 NAKAMURA Usaku <usa@ruby-lang.org>
* string.c (rb_str_dump): need to extend len for \b.

View file

@ -755,7 +755,9 @@ class MultiTkIp
@pseudo_toplevel = [false, nil]
def self.__pseudo_toplevel
self.__pseudo_toplevel_evaluable? && @pseudo_toplevel[1]
Thread.current.group == ThreadGroup::Default &&
MultiTkIp.__getip == @@DEFAULT_MASTER &&
self.__pseudo_toplevel_evaluable? && @pseudo_toplevel[1]
end
def self.__pseudo_toplevel=(m)
@ -1757,7 +1759,9 @@ end
class MultiTkIp
# instance method
def __pseudo_toplevel
self.__pseudo_toplevel_evaluable? && @pseudo_toplevel[1]
ip = MultiTkIp.__getip
(ip == @@DEFAULT_MASTER || ip == self) &&
self.__pseudo_toplevel_evaluable? && @pseudo_toplevel[1]
end
def __pseudo_toplevel=(m)

View file

@ -4581,7 +4581,7 @@ end
#Tk.freeze
module Tk
RELEASE_DATE = '2006-07-10'.freeze
RELEASE_DATE = '2006-07-11'.freeze
autoload :AUTO_PATH, 'tk/variable'
autoload :TCL_PACKAGE_PATH, 'tk/variable'