Commit graph

39 commits

Author SHA1 Message Date
David Mudrák
801ee23427 MDL-69050 lang: Improve the wording of the comments
Stop using the terms whitelist/blacklist when used to allow/deny things.
2020-09-24 19:41:58 +02:00
Tim Hunt
802f408f35 MDL-31244, MDL-25063 algebra filter: fix common false positives.
There are two well-known cases where the algebra filter messes up input
that is obviously not meant for the algebra filter:

1. Copy and paste of unified diffs.

2. @@PLUGINFILE@@ tokens in the HTML that are due to be replaced by the
files API.

This fix detects these two cases, and just stops the algebra filter from
replacing them.
2012-08-23 19:14:40 +01:00
Frederic Massart
6ca657a772 MDL-34462 Librairies: Replaced deprecated get_context_instance() 2012-07-23 16:22:36 +08:00
Petr Skoda
10793e570c MDL-26837 remove blacklisted markup from algebra conversion 2011-03-17 15:36:21 +01:00
Petr Skoda
f7f0909ce5 PULL-442 multiple TeX related fixes
Prevent moodle_url error, cleanup entity encoding and decoding, disable tex source view when TeX and Algebra plugins disabled, localise TeX source popup and prevent phishing attempts, fix executable permission of Algebra pearl script, prevent image error in tex debug when Tex/Ghostscript not configured properly, fix copyright blocks and phpdocs, improve coding style, fix wrong source display link in Algebra filter.
2011-03-13 15:18:07 +01:00
David Mudrak
2da70c6c30 Fixed undefined variable notice 2010-11-11 15:44:34 +00:00
David Mudrak
dcfffe3072 MDL-24531 Extend filter manager API so that options can be passed to the filters
The only option passed at the moment is the original format in which the
user inserted the text. Other options can be added later if/when needed.
2010-10-07 08:57:20 +00:00
Petr Skoda
35716b8682 MDL-22001 filter_text() and filter_string() now use context parameter instead of courseid, PAGE->context is used only as a fallback; moved comment stuff away from format_text() because it does not belong there; filterlib is not using courseid except for legacy filters; fixed coding style in filters;improved php docs; fixed upgrade of filters (should be in plugins, not core) 2010-07-30 20:51:01 +00:00
Andrew Davis
e4cd4de28a filters MDL-22564 fixing some php errors in the filters 2010-05-26 01:31:11 +00:00
Andrew Davis
eaed2fd163 ajax MDL-22286 removed references to the previous version of the JS function openpopup() 2010-05-05 02:05:58 +00:00
Petr Skoda
4317f92f3f MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:51:40 +00:00
tjhunt
ccc161f8f0 filters: MDL-7336 change weblib to use the new code
* Rename filter base class from filter_base to moodle_text_filter
* Remove unnecessary explicit constructors in moodle_text_filter
subclasses
* New filter_manager class, rather than static methods in filter_base
* Move some logic out of weblib, and into filter_manager
* Count filtering ops when $CFG->perfdebug on, via
performance_measuring_filter_manager
* Kill unused filter_string function. Petr said it should have been
private to weblib
2009-04-13 06:56:32 +00:00
dongsheng
9e3f34d1c7 "FILTER/MDL-14582, filters 2.0, compatible with old filters" 2008-12-19 02:16:00 +00:00
skodak
219f652b91 MDL-14679 upgrade $DB conversion 2008-05-31 18:05:42 +00:00
dongsheng
09ee7b0d9e MDL-14460, fix get_context_instance, see tracker 2008-04-23 08:07:42 +00:00
skodak
220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +00:00
skodak
10ccb7a77b MDL-8897 fixed shell commands in tex and algebra filters; merged from MOODLE_17_STABLE 2007-03-14 11:33:50 +00:00
skodak
0f13ec8f9b MDL-8105 some more icon class fixes including new .iconhelp for help and docs icon 2007-01-08 20:30:38 +00:00
skodak
2bbaf749c8 MDL-7434 all images that convey information should have alt text to convey that information - part 2 2006-11-25 18:09:33 +00:00
toyomoyo
5f10f77505 took out a comment, for proper debugging use the new debugging() function 2006-09-19 04:31:36 +00:00
toyomoyo
51792df056 adding capabilities 2006-09-08 08:46:26 +00:00
fiedorow
ee9ff7f35b Compatibility fix for glossary 2005-06-24 18:07:10 +00:00
stronk7
894ff63f8f Tabs are out 2005-05-16 22:22:31 +00:00
martinlanghoff
a9a9bdba55 Merged from MOODLE_14_STABLE - insert_record() - major efficiency improvements for Postgres databases on insert. Also fixed many calls to insert_record() which discard the returned record id to not ask for the record id. 2005-04-01 05:55:10 +00:00
fiedorow
d7e3f044c1 various improvements: better debugging, image positioning, XHTML validation 2005-02-10 22:19:08 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
moodler
df1c46115b Improvement to filters, providing speed boost AND better compatibility
with Turck MMCache.

Filter function must now have a particular name

   eg resource_filter

where "resource" is the name of the directory that filter.php is in.
2004-08-08 06:57:44 +00:00
fiedorow
49dfcc3b4f Bug fix for Windows systems 2004-06-08 20:36:13 +00:00
fiedorow
7363a0355b Commented out debugging code 2004-04-26 15:20:10 +00:00
fiedorow
1b71c53e1d Bug fix for incorrect handling of negatives in equations and inequalities 2004-03-30 17:11:56 +00:00
fiedorow
30fc04e4e8 replaced js alert by popup 2004-03-28 22:35:49 +00:00
fiedorow
d633b4eb27 Expression image now links to TeX source or debug script 2004-03-27 18:33:30 +00:00
fiedorow
ea3cf78190 Remove nolink tags in glossaries 2004-02-29 14:26:57 +00:00
fiedorow
e86a754bab Yip's additions for Greek letters and bug fixes 2004-02-20 19:24:36 +00:00
fiedorow
1ed0ba1d77 Improved debugging of mimetex 2004-02-20 01:44:31 +00:00
fiedorow
65a275f404 Now strips outermost parentheses in denominators 2004-02-19 21:27:16 +00:00
fiedorow
9b361d24b3 Added debugger for algebra filter 2004-02-19 18:03:41 +00:00
fiedorow
5794f89813 Support for absolute value added 2004-02-17 19:06:22 +00:00
moodler
830e238d58 Removed tex binaries and renamed main filter file 2004-02-17 05:12:33 +00:00
Renamed from filter/algebra/algebra_filter.php (Browse further)