Skip to content

Commit 272ebf3

Browse files
committed
Bug fix = ignored in requiretimes
Replace http youtube links with https links in filter Add Mathjax to license
1 parent d7f4693 commit 272ebf3

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

assessment/displayq2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5033,7 +5033,7 @@ function checkreqtimes($tocheck,$rtimes) {
50335033
if ($tocheck=='DNE' || $tocheck=='oo' || $tocheck=='+oo' || $tocheck=='-oo') {
50345034
return 1;
50355035
}
5036-
$cleanans = preg_replace('/[^\w\*\/\+\-\(\)\[\],\.\^]+/','',$tocheck);
5036+
$cleanans = preg_replace('/[^\w\*\/\+\-\(\)\[\],\.\^=]+/','',$tocheck);
50375037
//if entry used pow or exp, we want to replace them with their asciimath symbols for requiretimes purposes
50385038
$cleanans = str_replace("pow","^",$cleanans);
50395039
$cleanans = str_replace("exp","e",$cleanans);

filter/filter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ function svgfilterscriptcallback($arr) {
7373

7474
function filter($str) {
7575
global $sessiondata,$userfullname,$urlmode,$imasroot;
76+
if ($urlmode == 'https://') {
77+
$str = str_replace(array('http://www.youtube.com','http://youtu.be'),array('https://www.youtube.com','https://youtu.be'), $str);
78+
}
7679
if (strip_tags($str)==$str) {
7780
$str = str_replace("\n","<br/>\n",$str);
7881
}

license.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ AsciiMath and AsciiSvg Plugins for TinyMCE
4545
Based on code by David Lippman and Peter Jipsen
4646
LGPL License
4747

48+
MathJax
49+
(c) The MathJax Consortium
50+
Apache License
51+
4852
TinyMCE File manager
4953
Adapted from work by TadejK
5054
http://sourceforge.net/tracker/index.php?func=detail&aid=1698519&group_id=103281&atid=738747

0 commit comments

Comments
 (0)