[system] / trunk / pg / lib / WeBWorK Repository:
ViewVC logotype

Log of /trunk/pg/lib/WeBWorK

View Directory Listing Directory Listing


Sticky Revision:

Revision 4680 - Directory Listing
Modified Tue Nov 28 19:12:12 2006 UTC (13 years, 2 months ago) by sh002i
SECURITY: tighter constraints on which macro files can be loaded without
restriction. Previously, any file that *contained* the strings PG.pl,
dangerousMacros.pl, or IO.pl would be loaded with an empty opmask.

This is the second attempt to close this hole. The previous attempt
assumed that | binds tighter than ^ and $, which is not true. (Noticed
by dpvc). It also failed to escape metacharacters in the file names.

Revision 4678 - Directory Listing
Modified Mon Nov 27 18:57:41 2006 UTC (13 years, 2 months ago) by sh002i
formatting, ordering

Revision 4654 - Directory Listing
Modified Wed Nov 15 16:50:05 2006 UTC (13 years, 3 months ago) by sh002i
SECURITY: tighter constraints on which macro files can be loaded without
restriction. Previously, any file that *contained* the strings PG.pl,
dangerousMacros.pl, or IO.pl would be loaded with an empty opmask.

Revision 4388 - Directory Listing
Modified Sat Aug 19 23:31:38 2006 UTC (13 years, 6 months ago) by dpvc
Fixed the problem I pointed out at MathFest where some errors were not
being reported in the traditional num_cmp() function.  (Things like
'x+3' in a numeric field would not be reported as an error and x would
be treated as 0).  This is due to a change in version 1.14 when Sam
was normalizing the error reporting code; he didn't notice that warn
had been rerouted to die in PG_answer_eval().  I have replaced it.

Revision 4181 - Directory Listing
Modified Wed Jun 28 19:15:03 2006 UTC (13 years, 7 months ago) by jj
Fixed bug which caused warnings in problems containing hints and/or solutions
containing math (i.e., requiring images).

Revision 4134 - Directory Listing
Modified Mon Jun 19 15:13:33 2006 UTC (13 years, 8 months ago) by dpvc
Fixed grade_problem so taht is uses the safe compartment.  (This is
important because the problem can supply its own grader, and that code
shoudl be run in the safe compartment, just like the answer checkers
are.  Without this, graders could call PG_restricted_eval() and
actually get access to the full WW environment rather than the safe
compartment.)

Revision 4124 - Directory Listing
Modified Wed Jun 7 23:01:44 2006 UTC (13 years, 8 months ago) by gage
Make sure that WeBWorK::Constants has been loaded before this file is evaluated.

Revision 3426 - Directory Listing
Modified Fri Jul 29 19:44:04 2005 UTC (14 years, 6 months ago) by sh002i
Fix use of $SIG{__WARN__} and $SIG{__DIE__}.

* Each change to $SIG{__WARN__} and $SIG{__DIE__} is now dynamically
scoped with "local", rather than changing globally and then restoring at
the end of the block.

* The special value "DEFAULT" is used instead of sub {CORE::die(@_)} or
sub {CORE::warn(@_)} when preparing to eval STRING code.

* Where $SIG{__WARN__} and $SIG{__DIE__} are overridden to do
preprocessing with PG_errorMessage, the previously installed handlers
will be called instead of the built-in warn or die functions after
preprocessing occurs. (For example, the warn and die handlers defined in
Apache::WeBWorK or the warn handler defined in WeBWorK::PG will be
called.)

* The behavior in process_answers is modified so that the custom
handlers are installed once before the answer evaluation loop. This
causes them to be in effect during the setup/teardown code, but I don't
think this will be a problem.

Revision 3291 - Directory Listing
Modified Wed Jun 15 22:00:32 2005 UTC (14 years, 8 months ago) by jj
Changed whitespace removal of TeX strings to safer version.

Revision 3214 - Directory Listing
Modified Sat Apr 9 18:33:07 2005 UTC (14 years, 10 months ago) by gage
Provide a default warning subroutine if none has been defined.

Revision 3187 - Directory Listing
Modified Sat Feb 26 23:03:12 2005 UTC (14 years, 11 months ago) by gage
Allow subclasses of AnswerEvalutor to be used.  Check for a match
with a substring AnswerEvaluator instead of equality.

Revision 3093 - Directory Listing
Modified Sun Jan 16 00:52:49 2005 UTC (15 years, 1 month ago) by gage
Undoing some of the temporary changes I made to the warn message.

This may break what happens with xmlrpc however. (sigh)

Revision 3071 - Directory Listing
Modified Sat Jan 1 22:29:41 2005 UTC (15 years, 1 month ago) by gage
Temporary modifications which allow the Warning mechanisms to work when
using the XML access methods.

This needs to be looked at again.  There is also a problem with defining
permissions for creating directories.  There is a temporary #FIXME
that seems to work.

Revision 2698 - Directory Listing
Modified Sat Aug 28 13:52:33 2004 UTC (15 years, 5 months ago) by dpvc
Add better error reporting in PG translator.  In particular, these
changes add two new features:

	1)  produce a full stack trace when a .pg file dies, and
	2)  convert (eval nnn) references to filenames, when
	    possible, in warn and die messages while processing a
	    .pg file.

There is also a change in the webwork tree that is needed to make this
all work, so be sure to apply updates in both trees.

Revision 2469 - Directory Listing
Modified Thu Jul 8 15:29:45 2004 UTC (15 years, 7 months ago) by apizer
Create equations directory if it doesn't exist.  All directories under
tmp should be recreated if they don't exist.

Arnie

Revision 2461 - Directory Listing
Modified Wed Jul 7 21:26:52 2004 UTC (15 years, 7 months ago) by apizer
Change permission of tmp files so that they can be removed.

Arnie

Revision 2420 - Directory Listing
Modified Sat Jun 26 21:56:44 2004 UTC (15 years, 7 months ago) by jj
Most of the work for adjusting vertical alignment of images is here.

Revision 2409 - Directory Listing
Modified Fri Jun 25 16:27:55 2004 UTC (15 years, 8 months ago) by jj
Allow option of not using the cache.  If its path is the empty string, then
we just return the md5 hash of the latex string followed by a 1.

Revision 2389 - Directory Listing
Modified Thu Jun 24 18:13:33 2004 UTC (15 years, 8 months ago) by dpvc
Removed extra spaces from around dvipng images.

(These can cause bad line breaks, e.g. between mathematics and the
punctuation that follows.)

Revision 2369 - Directory Listing
Modified Wed Jun 23 01:18:58 2004 UTC (15 years, 8 months ago) by sh002i
ImageGenerator is now using WeBWorK::Constants

Revision 2363 - Directory Listing
Modified Tue Jun 22 18:03:07 2004 UTC (15 years, 8 months ago) by jj
When using the imageCache (which is always), put images into subdirectories
based on the first two characters of their md5 hash.

Revision 2274 - Directory Listing
Modified Mon Jun 7 23:53:45 2004 UTC (15 years, 8 months ago) by sh002i
got rid of remaining calls to "wwerror". Fixes bug #530.

Revision 2167 - Directory Listing
Modified Sat May 22 22:32:43 2004 UTC (15 years, 9 months ago) by gage
Moved be_strict after package main;

Revision 2158 - Directory Listing
Modified Sat May 22 20:48:51 2004 UTC (15 years, 9 months ago) by gage
We are now using ww_strict.pm instead of strict.pm in be_strict;

Revision 2157 - Directory Listing
Modified Sat May 22 20:46:20 2004 UTC (15 years, 9 months ago) by gage
We are using our own version of strict.pm that has a require Carp;  commented out.
This is included in be_strict which is used to implement strict within PG macro files
which need to be evaluted inside the Safe compartment

Revision 2142 - Directory Listing
Modified Fri May 21 23:54:00 2004 UTC (15 years, 9 months ago) by apizer
Replaced PGsort with a version that uses quick sort.  This fixes the
problem the old PGsort had with Perl compiled with ithreads.

Arnie

Revision 2135 - Directory Listing
Modified Fri May 21 01:34:28 2004 UTC (15 years, 9 months ago) by sh002i
Modified DVIPNG_ARGS to work with dvipng >= 1.0.

Revision 2057 - Directory Listing
Modified Sat May 8 22:53:03 2004 UTC (15 years, 9 months ago) by gage
Preliminary changes that may eventually allow us to solve the be_strict problem for 5.8.0

Revision 1779 - Directory Listing
Modified Fri Feb 6 02:52:42 2004 UTC (16 years ago) by gage
Allow a 256 error from dvipng.  This seems to be necessary on webwork.math.rochester.edu, so I'm commiting
it to the CVS as well to keep the two systems in sync.

--Mike

Revision 1759 - Directory Listing
Modified Mon Jan 26 16:59:30 2004 UTC (16 years ago) by gage
Minor change to the definition of the timer

Revision 1688 - Directory Listing
Modified Sat Dec 27 21:34:04 2003 UTC (16 years, 1 month ago) by gage
Added error messages that should make it easier to tell if
certain directories have not been created. Also checks that
files are actually created and written at each step of the process.
--Mike

Revision 1556 - Directory Listing
Modified Wed Oct 1 02:40:09 2003 UTC (16 years, 4 months ago) by sh002i
changed the way the IO modules work: shared subroutines are in IO now,
and IO has a hash %WeBWorK::PG::IO::SHARE which can be added to
Translator's %shared_subroutine_hash directly.

Revision 1555 - Directory Listing
Modified Wed Oct 1 02:31:54 2003 UTC (16 years, 4 months ago) by sh002i
changed documentation to reflect the fact that reh refresh and mtime
flags are no longer used

Revision 1553 - Directory Listing
Modified Tue Sep 30 01:20:55 2003 UTC (16 years, 4 months ago) by sh002i
added files from WW2

Revision 1524 - Directory Listing
Added Thu Sep 25 00:28:15 2003 UTC (16 years, 5 months ago) by sh002i
added image generation modules from WW2

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9