Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Prevent VFP Function from being used
Message
De
03/01/2006 12:04:25
 
 
À
03/01/2006 11:55:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01082633
Message ID:
01082682
Vues:
7
>But it is not so easy to prevent some program trick.
>Sure, you have to exclude EVAL/COMPILE/EXECSCRIPT/Macro,
>otherwise the job of user containment becomes almost impossible
>
>
>#define INT myInt
>
>CLEAR
>
>? INT(3.5)
>
>variable=0h494E5428332E3529
>
>* multiform
>? EVALUATE(m.variable)
>? EVALUAT(m.variable)
>? EVALUA(m.variable)
>? EVALU(m.variable)
>? EVAL(m.variable)
>
>? EXECSCRI("return "+m.variable)
>
>variable = ''+variable
>? &variable
>
>PROCEDURE myInt(x)
>  RETURN "don't try to execute INT()"
>
I had already thought of that. The place where I want to contain user imagination is one where I let him write only one expression (not a complete program).
So I have to check for the existence of the EXECSCRIPT function.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform