Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/Renderer/Controller/Render.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use WeBWorK::PreTeXt;
sub parseRequest {
my $c = shift;
my %params = %{ $c->req->params->to_hash };
$params{outputFormat} ||= $params{outputformat} || 'default';

my $originIP = $c->req->headers->header('X-Forwarded-For')
// '' =~ s!^\s*(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}).*$!$1!r;
Expand Down
2 changes: 1 addition & 1 deletion lib/WeBWorK/FormatRenderedProblem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ sub formatRenderedProblem {
);

# Get the requested format. (outputFormat or outputformat)
my $formatName = $inputs_ref->{outputFormat} || 'default';
my $formatName = $inputs_ref->{outputFormat} || $inputs_ref->{outputformat} || 'default';

# Add JS files requested by problems via ADD_JS_FILE() in the PG file.
my @extra_js_files;
Expand Down