Russell Smith
ffd94de398
MDL-55272 lib: Allow random_bytes() to return large values.
...
PHP has a recursion limit and random_bytes on PHP5.6 without openssl
will error if sent a large value. Using a loop has lower overhead than
recursion as well.
2016-08-16 12:16:45 +10:00
Andrew Nicols
95cc9d3b53
Merge branch 'wip-mdl-55329-m30' of https://github.com/rajeshtaneja/moodle into MOODLE_30_STABLE
2016-08-09 14:28:19 +08:00
Rajesh Taneja
0944b1641a
MDL-54656 behat: Skip test if db family is not mysql or postgres
2016-08-04 08:47:42 +08:00
Dan Poltawski
a896f02f1f
MDL-54847 tests: fix unused var
2016-08-02 20:16:45 +01:00
Cameron Ball
4f9a64b6ff
MDL-54847 weblib: Test media attributes individually
2016-08-02 20:16:41 +01:00
Cameron Ball
d2d65178fa
MDL-54847 weblib: Support basic HTML media tags
2016-08-02 15:55:39 +08:00
Rajesh Taneja
7c74b0aeb8
MDL-55329 behat: PyStrings should end with : (colon)
2016-07-27 07:02:34 +08:00
David Monllao
eee0dce093
Merge branch 'MDL-55133-30' of git://github.com/damyon/moodle into MOODLE_30_STABLE
2016-07-12 13:16:48 +02:00
Dan Poltawski
68adc36911
Merge branch 'MDL-47371-30' of git://github.com/cameron1729/moodle into MOODLE_30_STABLE
2016-07-12 10:14:30 +01:00
Dan Poltawski
8994550de2
Merge branch 'MDL-55007-m30' of https://github.com/dthies/moodle into MOODLE_30_STABLE
2016-07-12 09:21:08 +01:00
Cameron Ball
ce4ff71aa3
MDL-47371 weblib: Add option to disable escaping
2016-07-12 10:34:42 +08:00
Daniel Thies
da0e1acfed
MDL-55007 filter_mathjaxloader: Change unit test
2016-07-07 20:26:18 -05:00
Andrew Nicols
119412b0ca
Merge branch 'MDL-54734-30' of git://github.com/lameze/moodle into MOODLE_30_STABLE
2016-07-07 09:58:32 +08:00
Andrew Nicols
2245bc111b
MDL-54734 user: Add tests to demonstrate multi-user issues
2016-07-07 09:31:58 +08:00
Damyon Wiese
443feb7ee8
MDL-55133 javascript: Correctly use component names in requirejs
...
Core subsystems must use the 'core_' prefix always.
2016-07-06 10:29:35 +08:00
Marina Glancy
84cd5dca45
MDL-55069 core: escape special characters in email headers
2016-07-04 12:28:06 +01:00
Andrew Nicols
e11ad0fc71
Merge branch 'MDL-55020-30-pluginzip' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE
2016-07-04 11:26:53 +08:00
David Mudrák
811f5b406d
MDL-55020 admin: Fix renaming of the plugin package root folder
...
There was a problem with core\update\code_manager::unzip_plugin_file()
if it was used to extract a plugin package into a non-empty target
directory and the plugin package root folder was being renamed at the
same time.
The problem was caused by the underlying helper method
rename_extracted_rootdir() that worked only for ZIPs extracted to an
empty temporary location. When the plugin was extracted to the actual
dirroot with other existing plugin folders present, the method failed
badly.
The solution in the patch is to always extract the ZIP into a temporary
empty location, perform the eventual root renaming there, and only then
move the extracted contents to the final destination. Additionally we
are changing the behaviour of the rename_extracted_rootdir() method so
that now it throws exception if the plugin package contains multiple
root folders (it should not happen in normal situations as such a plugin
would not pass the pre-install validation).
Unit tests did not catch this bug before because in the tests, the
target directory had been empty. Now we are adding a new directory
"aaa_another" to the target location to test in more realistic
environment. Tests for the new behaviour of the renaming method are
added, too.
p.s. I noticed that moodle_exception class was not imported into the
namespace and this is fixed now too (and covered with unit tests).
2016-07-01 01:05:41 +02:00
Andrew Nicols
9543b1c57a
Merge branch 'wip-mdl-54974-m30' of https://github.com/rajeshtaneja/moodle into MOODLE_30_STABLE
2016-06-28 08:33:48 +08:00
Rajesh Taneja
723702bf08
MDL-54974 behat: Handle interupts on PHP7
...
As https://bugs.php.net/bug.php?id=71448 is
not going to get fixed, we need to declare tick
2016-06-27 14:32:54 +08:00
Andrew Nicols
9d087a1a28
Merge branch 'MDL-54785-30' of git://github.com/FMCorz/moodle into MOODLE_30_STABLE
2016-06-27 09:33:40 +08:00
Frederic Massart
4d957a5373
Revert "Merge branch 'MDL-54110_master' of https://github.com/marxjohnson/moodle "
...
This reverts commit 016e0abfbc , reversing
changes made to 58a2f0ac40 .
2016-06-23 12:44:40 +08:00
Frederic Massart
dd12c1df33
Revert "MDL-54110 repositories: Whitespace, Typo + unit test fixes"
...
This reverts commit 7e4d43e1a2 .
2016-06-23 12:44:40 +08:00
sam marshall
5a5815d779
MDL-54920 Behat: Allow viewport size to be set consistently
...
Provides a new Behat step
And I set viewport size to "800x600"
2016-06-15 15:29:38 +01:00
Andrew Nicols
53e32ff5b8
Merge branch 'MDL-54853-30' of git://github.com/cameron1729/moodle into MOODLE_30_STABLE
2016-06-09 09:56:58 +08:00
Cameron Ball
4ac487dba6
MDL-54853 weblib: Properly specify encoding for blanktarget
2016-06-08 18:29:52 +08:00
David Monllao
365cc7aaed
Merge branch 'MDL-54180_30_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_30_STABLE
2016-06-07 16:17:32 +08:00
Mark Johnson
1ec4e9320a
MDL-54180 Behat: Handle exceptions from driver when saving screenshot
2016-05-31 12:39:47 +01:00
David Monllao
086b3f25a0
Merge branch 'MDL-29905-30' of git://github.com/FMCorz/moodle into MOODLE_30_STABLE
2016-05-30 15:41:29 +08:00
Cameron Ball
0c1ba9c959
MDL-37138 weblib: Add blanktarget option to format_text
2016-05-30 13:18:26 +08:00
Frederic Massart
5bc25db29c
MDL-29905 question: Auto remove stale questions upon category deletion
2016-05-30 12:26:31 +08:00
Dan Poltawski
443487dab7
Merge branch 'wip-mdl-53956-m30' of https://github.com/rajeshtaneja/moodle into MOODLE_30_STABLE
2016-05-18 10:45:21 +01:00
Rajesh Taneja
c9072543fc
MDL-53956 behat: Avoid before and after step and switch
...
After pressing the button, if system is slow then
after step and before step might fail as the window
is closed by then. Execute steps one after other
2016-05-18 14:19:09 +08:00
Adrian Greeve
b215dec368
MDL-45390 gradebook: sql tidy up and version alignment.
2016-05-18 10:44:16 +08:00
David Monllao
69033e2214
MDL-45390 grades: Courses letters using system bad boundaries
...
Added unit tests to highlight the existing failures and adding
unset_config between each set of tests.
2016-05-18 10:02:46 +08:00
Adrian Greeve
0cbd302b83
MDL-45390 gradebook: Unit tests for grade boundary issue.
2016-05-18 09:58:07 +08:00
Andrew Nicols
3945629232
MDL-54110 repositories: Whitespace, Typo + unit test fixes
2016-05-11 10:42:53 +08:00
Andrew Nicols
539c1cf9ec
Merge branch 'MDL-54110_30_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_30_STABLE
2016-05-11 10:42:42 +08:00
Mark Johnson
a674b3659c
MDL-54110 repositories: Allow repositories to ignore post_max_size
...
Repositories can now override usespost() if they don't upload using POST
requests. This restores the ability of users with
moodle/course:ignorefilesizelimits to upload files of unlimited size
lost in MDL-44626.
2016-05-10 16:11:28 +01:00
Dan Poltawski
8e25eba291
Merge branch 'MDL-50704-30-bp' of git://github.com/FMCorz/moodle into MOODLE_30_STABLE
2016-05-10 15:59:43 +01:00
Frederic Massart
396e1a76d3
MDL-50704 date: Fix invalid timezone mapping for +14
...
The value Etc/GMT-14 was added to the list of known timezones,
and Etc/GMT+13 & Etc/GMT+14 were removed as they are not valid.
Tests were added to ensure that legacy user timezones are mapped
to known timezones. Other tests were changed to reflect the changes
with regards to Etc/GMT+13 and +-14.
2016-05-09 17:36:36 +08:00
Frederic Massart
d2d41fa003
MDL-54034 ajax: Apply filters in ajax requests
...
This also clarified that developers can decide to force filters
to be ignored when using external_format_text, though they cannot
force filters to be turned on as the clients should be able to
opt-out from filtering should they want to.
2016-05-06 18:02:46 +08:00
Dan Poltawski
7d0b6bea51
MDL-54008 tests: clarify comment in tz test
2016-05-03 09:10:35 +01:00
David Monllao
57411a05d8
MDL-54008 tz: Unexisting tz with decimals fallback to rounded down integer
2016-05-03 13:59:29 +08:00
David Monllao
cda239e63e
MDL-54008 timezone: Updating references to Caracas tz.
...
I've removed Caracas direct references because it would fail on
some systems, it would depend on how updated is the olson version
PHP is using.
2016-05-02 14:14:05 +08:00
Eloy Lafuente (stronk7)
1491aca61d
Merge branch 'MDL-53796_30' of git://github.com/dmonllao/moodle into MOODLE_30_STABLE
2016-04-19 01:58:36 +02:00
David Monllao
306561a926
MDL-53796 behat: Move get_debug_text to base class
2016-04-13 10:36:47 +08:00
Pau Ferrer Ocaña
d830d4601d
MDL-52263 libraries: Add test cases to external_format_text options
2016-04-12 15:06:33 +02:00
Andrew Nicols
42462c057a
Merge branch 'wip-mdl-53381-m30' of https://github.com/rajeshtaneja/moodle into MOODLE_30_STABLE
2016-04-06 12:23:47 +08:00
Rajesh Taneja
586869780f
MDL-53381 behat: Add support to execute step api
...
With chain step deprecation, execute api will
help user to execute step api and backport it
2016-04-06 10:59:12 +08:00