From 46e1256d974e78436ea1842b66ba7283280a2f31 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 12 Feb 2007 23:20:00 +0000 Subject: Remote Service Provider: increase security by preventing a malicious client from accessing the @bot instance variable --- lib/rbot/core/remote.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/rbot') diff --git a/lib/rbot/core/remote.rb b/lib/rbot/core/remote.rb index de0ade5f..43d883dd 100644 --- a/lib/rbot/core/remote.rb +++ b/lib/rbot/core/remote.rb @@ -235,6 +235,8 @@ module ::Irc m = RemoteMessage.new(@bot, client, cmd) @bot.remote_dispatcher.handle(m) end + + private :instance_variables, :instance_variable_get, :instance_variable_set end # The bot also manages a single (for the moment) remote dispatcher. This method -- cgit v1.2.3