aboutsummaryrefslogtreecommitdiff
path: root/ajax.php
diff options
context:
space:
mode:
Diffstat (limited to 'ajax.php')
-rw-r--r--ajax.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/ajax.php b/ajax.php
index 9231012..544603c 100644
--- a/ajax.php
+++ b/ajax.php
@@ -29,12 +29,17 @@ $p = new qtype_algebra_parser;
$vars = required_param('vars', PARAM_RAW);
$expr = required_param('expr', PARAM_RAW);
+
+// This should be accessed by only valid logged in user.
+require_login(null, false);
+
/*
if (!confirm_sesskey()) {
header('HTTP/1.1 403 Forbidden');
die();
}
*/
+
try {
$vars = explode(',', $vars);
if (empty($expr)) {