[REBOL] Re: security annoyance
From: al:bri:xtra at: 21-Jan-2002 9:33
> As I intend to use the include directory from various locations, it is not
the best solution.
> Any idea ?
If you're going to use the scripts in the include directory from various
locations, why not 'do all the scripts in the include directory as Rebol
For example, in my %User.r, I've got:
which is the script that 'do-es all my common scripts. Because the 'do
line is in %User.r, it bypasses Rebol's security restriction. I've appended
%Values.r after my .sig.
ICQ: 26227169 http://valley.150m.com/
Values: make object! [
Files: make block! 100
use [Do-File Patches] [
Do-File: function [File [file!]] [Loaded Needs] [
File: clean-path File
if not found? find Files File [
Loaded: load/header File
if all [
foreach Need Needs [
if file? Need [
do File ; Deliberately done to get Rebol to print
etc from 'do.
append Files File
append Files clean-path Rebol/Script/Header/File
if exists? Patches [
foreach File read %. [