Commit graph

11016 commits

Author SHA1 Message Date
Petr Skoda
4758639429 MDL-24080 converting remaining NOT LIKEs 2010-09-04 14:52:47 +00:00
Petr Skoda
16114b9db8 MDL-24080 new $notlike parameter added to our new sql_like(), hopefully nobody started using the $escaped param yet; unittests included 2010-09-04 14:39:01 +00:00
Petr Skoda
2f8eea3415 MDL-24079 finally the sql_ilike() is deprecated 2010-09-04 14:23:50 +00:00
Petr Skoda
20a79b4316 MDL-24079 fixed potential SQL injection in tablelib 2010-09-04 13:02:49 +00:00
Petr Skoda
e08de1b495 MDL-24079 converted searchlib to use new sql_like() 2010-09-04 12:50:23 +00:00
Petr Skoda
b0238f06e3 MDL-24079 converted datalib to use new sql_like() 2010-09-04 12:45:47 +00:00
Petr Skoda
f63ac65ac5 MDL-24079 converted sql_ilike() to new sql_like in user selectors 2010-09-04 11:46:00 +00:00
Petr Skoda
57ebd15e1d MDL-23308 reverting previously reverted deprecation of legacy course files - we have agreed during the meeting on Thursday that we add new setting to allow this, not keeping the course files everywhere forever 2010-09-03 19:14:33 +00:00
Petr Skoda
f685e83030 MDL-14679 fixed remaining old style set_field()s 2010-09-03 18:14:55 +00:00
Petr Skoda
a9637e7df4 MDL-14679 fixed a lot more old style uses of insert_record() 2010-09-03 17:47:41 +00:00
Petr Skoda
9d97f08e99 MDL-14679 fixed multiple old style insert_record calls, we throw exceptions now from DML 2010-09-03 16:26:04 +00:00
Petr Skoda
0424cfe307 fixed comment typos 2010-09-03 15:59:25 +00:00
Petr Skoda
0e6e90516a MDL-24028 cast all bools in DML params to integers 1/0; credit goes to Eloy Lafuente 2010-09-03 15:44:11 +00:00
Petr Skoda
86f6eec327 MDL-23184 PARAM_CLEANHTML is work with real html markup only, it does not do our custom FORMAT_MOODLE tweaks anymore, luckily this was not supposed to be used before storage to database in 1.9, that means there should not be any BC issues;improved docs 2010-09-02 18:49:31 +00:00
Petr Skoda
9f75f77da3 MDL-23184 improved docs, do not show deprecated examples 2010-09-02 18:37:22 +00:00
Petr Skoda
fb59f2f126 MDL-23184 CLEAN_PARAM explanation improved in unittests 2010-09-02 18:12:21 +00:00
Petr Skoda
7e4341f9f5 fixed php docs, PARAM_CLEANHTML does not strip backslashes anymore 2010-09-02 17:58:03 +00:00
Petr Skoda
44913c8d47 MDL-24063 finally after so many years developers have to specify parameter types in optional_param() and required_param() - the developers get standard PHP notices and debugging info, hopefully that will be enough to persuade everybody to stop abusing default PARAM_CLEAN; fixing php docs 2010-09-02 17:51:59 +00:00
Petr Skoda
40ea93a4fe MDL-15897 fix strict comparison 2010-09-02 17:33:49 +00:00
Petr Skoda
b6059edcac MDL-22959 PARA_TEXT multilang whitelisting cleanup; the text is no longer being processed by kses or htmlpurifier - this should fix some recent regressions, any xhtml strict tweaking should be done in format_string() if necessary; unit tests included 2010-09-02 17:30:00 +00:00
Tim Hunt
dc3e95c0d8 MDL-24060 Need a way to control whether html_to_text lists all links in the HTML 2010-09-02 13:06:17 +00:00
Petr Skoda
30c39ac54f MDL-24058 no stripslashes any more 2010-09-02 12:49:29 +00:00
Petr Skoda
714dac9f7b MDL-24058 magic quotes are being delat with in our lib/setup.php, no need to use them again in our heavily hacked quickforms 2010-09-02 12:47:59 +00:00
Petr Skoda
5c38934703 MDL-16780, MDL-24058 removing AJAX from list of used libs too 2010-09-02 12:29:25 +00:00
Petr Skoda
c1c89e3b21 MDL-16780, MDL-24058 removing PHP4 JSON implementation and related AJAX pear stuff that is not used any more - it is buggy, so we would have to either fix it (waste of time) or we have to remove it; no core code is using this and contrib can be easily updated to use standard json_encode() 2010-09-02 12:27:47 +00:00
Petr Skoda
8f46ae619c MDL-24058 fixed potential XSS 2010-09-02 12:19:08 +00:00
Petr Skoda
7d8f881a49 MDL-23997 using strings instead of integers in binding emulation - this should be compatible both with int and nvarchar sql types 2010-09-02 10:24:40 +00:00
Aparup Banerjee
d2d38c4651 lib MDL-23180 put in obviously missed global $CFG. 2010-09-02 06:34:48 +00:00
Andrew Davis
59ee314414 gradebook MDL-24045 added a guard for when the user report is accessed outside of a course context 2010-09-02 02:38:29 +00:00
Sam Marshall
51f96f5bd9 blocks MDL-24040 Creating course fails horribly if you make one of the default blocks invisible 2010-09-01 17:36:46 +00:00
Sam Marshall
46e1237279 Completion MDL-23995 Completion, availability data not deleted with modules/course 2010-09-01 17:02:56 +00:00
Petr Skoda
bb980cce0b MDL-23997 even more unittests detecting failures in sqlsrv driver 2010-09-01 16:05:17 +00:00
Petr Skoda
057865c017 MDL-23997 more unittests detecting failures in sqlsrv driver 2010-09-01 15:54:16 +00:00
Andrew Davis
f9cd798c7e rating MDL-23908 improved rating role tips 2010-08-31 07:59:32 +00:00
Eloy Lafuente
e016d12603 NOBUG mssql driver, fix some wrong uses recently introduced 2010-08-30 13:45:26 +00:00
Eloy Lafuente
41276c9ed8 MDL-23997 add some unconvertible contents to the tests, just to be sure 2010-08-30 12:24:42 +00:00
Eloy Lafuente
7a45a5f1ec MDL-23997 modified char comparison tests to ensure they are executed without metadata at all 2010-08-30 12:05:35 +00:00
Eloy Lafuente
c899cbeae9 MDL-23997 re-added text comparison tests for bound query now using sql_compare_text() properly. 2010-08-30 11:46:34 +00:00
Petr Skoda
2a72392d59 MDL-23997 new tests for bound query compatibility - reverting text comparison, we need param type hints for that 2010-08-30 10:51:50 +00:00
Eloy Lafuente
78b3faa98c NOBUG mssql - nasty regression causing silent script abort without notice at all, grrr. 2010-08-30 10:45:54 +00:00
Petr Skoda
9ac5fdf82b MDL-23997 new tests for bound query compatibility 2010-08-30 08:28:18 +00:00
Dongsheng Cai
e921afa874 "MDL-23308, bring course files back" 2010-08-30 08:22:14 +00:00
Sam Hemelryk
9f5c39b527 blocks MDL-24002 Split block renderering into several smaller methods, one for each area of a block. 2010-08-30 06:57:05 +00:00
Sam Hemelryk
abaece1e26 navigation MDL-23981 Fixed up simpletests for the navigation 2010-08-30 02:50:22 +00:00
Petr Skoda
35b622e1f7 MDL-23984 fixed curl cache to use our default permissions 2010-08-29 17:09:33 +00:00
Petr Skoda
59333bc943 MDL-23991 not a nice hack for sending file as string content to zip packer 2010-08-29 16:44:32 +00:00
Petr Skoda
f2b7f45486 MDL-23949 ohlala, I have borked the capabilities preloading completely - sorry for the regression!! 2010-08-29 16:26:35 +00:00
Petr Skoda
71904f4d2b MDL-23984 make_upload_directory() cleanup - we now throw exceptions by default which should prevent a lot of strange problems 2010-08-29 14:59:14 +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
4031f6a27c MDL-23984 improved check_dir_exists() and make_upload_directory() incorrect permissions throw fatal exceptions by default; it is possible to create dirs outside of dataroot (necessary for custom dir locations); fixed Win32 compatibility in session_exists method 2010-08-29 14:33:39 +00:00