shellDBus: Lock down Eval() to be a development tool only

https://bugzilla.gnome.org/show_bug.cgi?id=662891
This commit is contained in:
Jasper St. Pierre 2011-10-27 17:41:06 -04:00
parent a8e35422f2
commit 85cd189a69

View File

@ -93,6 +93,9 @@ GnomeShell.prototype = {
*
*/
Eval: function(code) {
if (!global.settings.get_boolean('development-tools'))
return [false, null];
let returnValue;
let success;
try {