Commit Graph

127 Commits

Author SHA1 Message Date
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 7270479f7d MDL-24058 removing forgotten stripslashes, no magic quotes used any more 2010-09-02 12:44:27 +00:00
Petr Skoda c426ef3aa5 MDL-23984 improvements of check_dir_exists() - replacing by make_upload_directory() in cases where we want to be sure that the dir is writable; removning now default create and recursive params to make code easier to read 2010-08-29 14:51:09 +00:00
Petr Skoda fcab3e647e MDL-23984 using standard check_dir_exists() in latex 2010-08-29 10:12:42 +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
Petr Skoda dbf9e4bae3 MDL-23234 finally standardised use of settings.php across all plugins - the only partial exceptions now are report and local plugins 2010-07-13 13:56:55 +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
David Mudrak 30c8dd34f7 MDL-15252 Re-committing all English strings exported from AMOS
From now on, all English strings use the new syntax. They are not
eval()'ed any more and the only valid placeholders are {$a} and
{$a->foobar}. No extra quotes escaping, dollar sign escaping and putting
double percent signs.

The modified files were exported from AMOS database repository in the
new syntax and were re-ordered by stringid. Standard GNU/GPL and PHPdoc
blocks are added. Where there was no copyright note so far, I added the
default one with Martin Dougiamas as the copyright holder.

Live long and prosper.
2010-04-10 14:01:45 +00:00
Petr Skoda 3a915b0667 MDL-21693 Dropping _utf8 suffix from language codes and folder names; enabling new string managers - please note the transition is not yet fully complete because we need to wait for git to recognize the renames in cvs 2010-04-10 07:24:56 +00:00
Inaki cf4e7548a8 filter tex: MDL-10197 Quality improvement of TeX-images by using PNG format.
It seems some TeX installs use a convert utility that renders poor quality
images when using the GIF format, but render good ones when using PNG. If
all the needed tools are available, let the admin choose the preferred
output format.

Merged from MOODLE_19_STABLE
2010-04-10 00:19:22 +00:00
Petr Skoda a845d68b9f MDL-21694 moving filters strings to correct plugin location 2010-04-01 19:27:30 +00:00
Eloy Lafuente 073d380425 MDL-21407 tex filter - trim leading whitespace from latex preamble. Merged from 19_STABLE 2010-02-03 09:23:37 +00:00
Eloy Lafuente ba9806511b MDL-21393 completely remove old executabble (by everybody) script (only cleaned in 1.x versions) 2010-01-20 11:24:42 +00:00
Andrew Davis c78a948e8c all areas MDL-20821 Replaced instances of ereg_replace and eregi_replace with preg_replace 2009-11-17 01:36:35 +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
Petr Skoda 2e9b772fb8 MDL-20693 new NO_DEBUG_DISPLAY define 2009-10-31 22:02:05 +00:00
samhemelryk e25b7ded61 filter MDL-19796 Upgraded deprecated function calls 2009-09-30 07:03:52 +00:00
skodak 16b07d61d9 MDL-19832 new mimeTeX binaries v1.70 2009-07-16 09:48:17 +00:00
skodak 0be30d6f7a MDL-19841 removed sloppy hardcoded debug levels 2009-07-16 09:05:15 +00:00
stronk7 f6a5c4b0a7 MDL-18893 TeX filter - fine tune "def" commands + add some more commands to blacklist (from Kopete).
Thanks to Mauno Korpelainen and Steve Mayer. Merged from 19_STABLE
2009-04-20 21:25:45 +00:00
tjhunt 6b037e0420 filters: MDL 7336 Remove remaining references to ->filters 2009-04-13 07:04:32 +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
skodak c94985efb1 MDL-18552 different TeX trouble fix 2009-03-31 10:03:10 +00:00
stronk7 e42398e409 MDL-18552 TeX filter - blacklist unsecure commands + protect texdebug ; merged from 19_STABLE 2009-03-26 19:17:25 +00:00
tjhunt c1d9eeb920 tex filter: MDL-18230 ensure we always generate valid XHTML. 2009-02-17 05:24:41 +00:00
dongsheng e47d5adef3 "FILTER/MDL-18230, remove hardcoded style for TeX formulas image, merged from 1.9" 2009-02-16 03:10:01 +00:00
stronk7 84585f1d4b MDL-18100 tex filter debug - fix missing quote. Merged from 19_STABLE 2009-02-02 21:15:50 +00:00
skodak 11e7b506ce MDL-17754, MDL-11061, MDL-9276, MDL-17777, MDL-17787 - various url handling improvemetns; rewritten $FULLME and added $ME, $SCRIPT and $FULLSCRIPT; improved slashargument handling especially for IIS; removed legacy slasharguments functions obsoleted since 1.6; some other refactoring; reverse procy support, ssl appliance support 2009-01-05 21:37:20 +00:00
dongsheng 9e3f34d1c7 "FILTER/MDL-14582, filters 2.0, compatible with old filters" 2008-12-19 02:16:00 +00:00
mjollnir_ c39f019849 MDL-17207 filter/tex reverting removal of $pathname in
http://cvs.moodle.org/moodle/filter/tex/texed.php?r1=1.8&r2=1.7

This fixes a security problem only triggered with register_globals ON and magic_quotes_gpc OFF which is a very uncommon case
2008-11-11 18:35:14 +00:00
Francois Marier 6800d78e06 Drift between CVS and git
- large deletions
- lucene updates
- error() => print_error()
- NO_MOODLE_COOKIES define
- various other things
2008-06-25 17:31:23 +00:00
skodak 294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak 8618fd2aeb MDL-14679 converted some delete_records 2008-06-02 21:52:27 +00:00
skodak b402e13409 MDL-14679 towards filters conversion 2008-06-02 08:46:50 +00:00
skodak 82a5323cd7 MDL-14679 towards filters conversion 2008-06-02 08:46:50 +00:00
dongsheng 09ee7b0d9e MDL-14460, fix get_context_instance, see tracker 2008-04-23 08:07:42 +00:00
dongsheng c85fac1ff1 MDL-14129, fix incorrect print_error() call 2008-04-16 09:21:57 +00:00
dongsheng 6e7ead3ea9 MDL-14129, fix incorrect print_error() call 2008-04-16 09:16:50 +00:00
dongsheng 5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak 54d0812500 MDL-11561 tex debug leaking sensitive info; merged from MOODLE_19_STABLE 2007-12-25 11:42:45 +00:00
skodak 109e3cb281 MDL-11561 improved text filter cache resetting when settings change; fixed bug causing fatal errors if html purifier enabled during upgrade; merged from MOODLE_19_STABLE 2007-12-25 10:03:59 +00:00
skodak 7a85562ef1 MDL-12683 - fixing broken tex in windows (borked by my last commit) sorry; merged from MOODLE_19_STABLE 2007-12-20 21:37:49 +00:00
skodak 220a90c5a1 MDL-11561 admin tree improvements and bugfixing 2007-12-19 17:35:20 +00:00
sam_marshall f5ceb06a32 MDL-12039 Added ability to configure alt text when using TeX filter 2007-11-06 15:49:03 +00:00
thepurpleblob bad6ba65ae Missing a stripslashes() so TeX functions didn't work
Merged from STABLE_18
2007-09-11 14:55:34 +00:00
thepurpleblob 07caf142d7 MDL-10092:
Decode HTML entities before processing.

Merged from STABLE_18
2007-09-11 13:55:33 +00:00
thepurpleblob d93a90dcfd MDL-11147:
Debug screen now supports LaTeX/Ghostscript renderer.

Merged from STABLE_18
2007-09-07 14:24:18 +00:00
tjhunt dcb784c5de XHTML strict. Fix entity. Merged from MOODLE_18_STABLE. 2007-05-23 10:52:16 +00:00
thepurpleblob b698c2ab61 Check if the files exist. Display tick if they do and cross if not. 2007-05-17 17:44:06 +00:00