[system] Repository:
ViewVC logotype

Revision 2932


Jump to revision: Previous Next
Author: dpvc
Date: Tue Oct 19 00:08:04 2004 UTC (15 years, 1 month ago)
Log Message:
Updated i(), j() and k() functions to check if the Parser is loaded,
and if not, return a value that will cause perl to report a better
error than calling the parser outside of its normal context.

Since the current answer checkers call perl directly to evaluate their
expressions, when a variable is used by a student that is not a
variable used by the checker, this can cause perl to try to parse
those variables as function calls, or other perl constructs (like
matches if you use 'm' or translations if you use 'y').  This is bad
(and is not a problem with the new parser).

In particular, if the student uses 'k' in a formula for which k is not
defined, for example, perl will try to call the k() function.

Changed paths:

Path Details
Directorytrunk/pg/macros/dangerousMacros.pl modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9