Eloy Lafuente (stronk7) [Sun, 7 May 2017 19:32:44 +0000 (21:32 +0200)]
Moodle release 3.0.10
Marina Glancy [Fri, 28 Apr 2017 04:20:46 +0000 (12:20 +0800)]
MDL-58740 block_course_overview: check session key
Thanks to Kukas Schmidt for initial patch
Marina Glancy [Wed, 26 Apr 2017 07:04:25 +0000 (15:04 +0800)]
MDL-58670 blog: respect capability to search entries
Marina Glancy [Wed, 19 Apr 2017 04:04:47 +0000 (12:04 +0800)]
MDL-58635 blogs: check edited blog belongs to current user
David Monllao [Wed, 3 May 2017 02:27:40 +0000 (10:27 +0800)]
weekly release 3.0.9+
Andrew Nicols [Wed, 3 May 2017 00:32:04 +0000 (08:32 +0800)]
MDL-58746 core: Simplify environment check
Andrew Nicols [Mon, 1 May 2017 00:51:37 +0000 (08:51 +0800)]
MDL-58746 core: Add environment check for finfo
Eloy Lafuente (stronk7) [Mon, 17 Apr 2017 15:27:07 +0000 (17:27 +0200)]
MDL-54901 environment: pg93 & openssl
Eloy Lafuente (stronk7) [Mon, 17 Apr 2017 10:19:36 +0000 (12:19 +0200)]
MDL-54901 environment: 3.3 base information
This is a direct copy of the 3.2 branch to
have changes under control easier in next commits.
Eloy Lafuente (stronk7) [Sat, 11 Mar 2017 21:15:54 +0000 (22:15 +0100)]
Moodle release 3.0.9
Marina Glancy [Sat, 4 Mar 2017 04:22:12 +0000 (12:22 +0800)]
MDL-58010 user: allow to update only whitelisted preferences
Eloy Lafuente (stronk7) [Thu, 26 Jan 2017 23:27:49 +0000 (00:27 +0100)]
weekly release 3.0.8+
Dan Poltawski [Tue, 24 Jan 2017 10:11:26 +0000 (10:11 +0000)]
Merge branch 'MDL-57639-30' of git://github.com/andrewnicols/moodle into MOODLE_30_STABLE
Dan Poltawski [Mon, 23 Jan 2017 09:49:49 +0000 (09:49 +0000)]
Merge branch 'MDL-57677-30-usermodified' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE
Andrew Nicols [Thu, 19 Jan 2017 05:47:40 +0000 (13:47 +0800)]
MDL-57639 mod_forum: Update to use correct variable name
This addresses a regression where unnecessary attributes were removed
from the old variable. This one was missed.
David Mudrák [Tue, 17 Jan 2017 18:27:57 +0000 (19:27 +0100)]
MDL-57677 mod_forum: Fix wrong user displayed as the last post's author
In the recent issue MDL-56225, we started to record the current user as
the usermodified in the forum_discussions table when updating a forum
post. It made sense but it was a mistake.
Even if the current user really modifies the discussion by updating the
post, the field usermodified has actually been always interpreted and
displayed as the last post' author. Not as the last user who touched the
discussion.
This patch reverts that particular change to the previous behaviour and
adds explicit unit test for it.
Eloy Lafuente (stronk7) [Sun, 8 Jan 2017 10:04:22 +0000 (11:04 +0100)]
Moodle release 3.0.8
Eloy Lafuente (stronk7) [Sun, 8 Jan 2017 10:04:18 +0000 (11:04 +0100)]
Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE
David Mudrák [Thu, 5 Jan 2017 12:20:59 +0000 (13:20 +0100)]
MDL-57580 mod_assign: Fix the incorrect type of some input parameters
The PARAM_TEXT has been misused in certain cases here. The 'action'
parameter seems to always be alphabetic, with values like
savesubmission, editsubmission and others as handled in assign::view().
Fixing the action handling fixes the reported XSS issue. While working
on it, I spotted two more places where PARAM_TEXT does not seem
appropriate. I include changes for them too, even if they are no
strictly related to the reported bug and there are no known ways to
abuse it.
* The 'plugin' looks like PARAM_PLUGIN and is even declared as such in
some other parts of the assignment code (such as feedback forms).
* The 'workflowstate' is one of the ASSIGN_MARKING_WORKFLOW_STATE
constants and is supposed to be alpha in external function input
parameters handling, too.
Rajesh Taneja [Thu, 5 Jan 2017 06:40:16 +0000 (14:40 +0800)]
MDL-57531 behat: Set noreplyaddress to valid address
noreplyaddress should be a valid address, else
it will not be saved. For behat we don't send
email, so set it to noreply@example.com, to
avoid failing validation on localhost
David Mudrák [Wed, 4 Jan 2017 12:05:03 +0000 (13:05 +0100)]
MDL-57531 mail: Validate the sender's email address
The patch adds validation for the noreplyaddress setting variable, for
the explicit $replyto parameter and for the sender's email. In case of
misconfigured noreplyaddress setting, it falls back to the default
noreply address value. In case of invalid email in the user's record,
the email is not sent.
The patch also adds unit test for the value returned by the function
generate_email_processing_address() so that it can be considered as a
valid email, too.
This is supposed to significantly minimise the risk of exploiting the
vulnerability in PHPMailer's Sender field.
David Mudrák [Wed, 4 Jan 2017 11:30:18 +0000 (12:30 +0100)]
MDL-57531 mail: Do not let admins set invalid email addresses
The noreply and support emails should always be valid.
David Mudrák [Wed, 4 Jan 2017 09:58:44 +0000 (10:58 +0100)]
MDL-56225 mod_forum: Fix inability to edit attachments
The 'attachments' is not a real DB field here. It comes from the form's
filepicker and holds the id of the attachments filearea. The function
forum_add_attachment() expects it as a property of the first argument.
There were two possible approaches here. Either to pass the raw $newpost
to forum_add_attachment(), or add the attachments into the list
modifiable fields. The second approach is safer.
Andrew Nicols [Fri, 7 Oct 2016 02:56:29 +0000 (10:56 +0800)]
MDL-56225 mod_forum: Remove unnecessary attributes from update
AMOS bot [Wed, 7 Dec 2016 16:05:43 +0000 (00:05 +0800)]
Automatically generated installer lang files
Dan Poltawski [Fri, 2 Dec 2016 15:18:06 +0000 (15:18 +0000)]
weekly release 3.0.7+
Dan Poltawski [Fri, 2 Dec 2016 15:18:05 +0000 (15:18 +0000)]
Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE
Eloy Lafuente (stronk7) [Fri, 2 Dec 2016 10:41:25 +0000 (11:41 +0100)]
Merge branch 'MDL-57193-30-notest' of git://github.com/FMCorz/moodle into MOODLE_30_STABLE
Frederic Massart [Fri, 2 Dec 2016 08:02:00 +0000 (16:02 +0800)]
MDL-57193 auth_db: Flip the array outside the loop for better perf
Also as the recent changes where affecting the whitespaces quite
a lot, I took the liberty of aligning a few lines which weren't.
John Okely [Fri, 2 Dec 2016 06:34:18 +0000 (14:34 +0800)]
MDL-57193 auth_db: Use a recordset and array_key_exists
Josh Willcock [Tue, 29 Nov 2016 17:55:04 +0000 (17:55 +0000)]
MDL-57193 auth_db: Fixed bug suspends all users if external DB has > 10k
AMOS bot [Wed, 30 Nov 2016 16:06:02 +0000 (00:06 +0800)]
Automatically generated installer lang files
AMOS bot [Wed, 30 Nov 2016 16:06:02 +0000 (00:06 +0800)]
Merge branch 'MOODLE_30_STABLE' into install_30_STABLE
AMOS bot [Tue, 29 Nov 2016 16:05:00 +0000 (00:05 +0800)]
Automatically generated installer lang files
Dan Poltawski [Tue, 29 Nov 2016 13:32:27 +0000 (13:32 +0000)]
weekly release 3.0.7+
Dan Poltawski [Tue, 29 Nov 2016 13:32:25 +0000 (13:32 +0000)]
Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE
David Monllao [Tue, 29 Nov 2016 03:43:31 +0000 (11:43 +0800)]
Merge branch 'MDL-57163-30' of https://github.com/vvzh/moodle into MOODLE_30_STABLE
Tim Lock [Mon, 28 Nov 2016 00:02:49 +0000 (10:32 +1030)]
MDL-57170 repository_dropbox: Ensure Dropbox Legacy continues to work
Vladimir Zhirov [Sat, 26 Nov 2016 19:42:54 +0000 (23:42 +0400)]
MDL-57163 installation: fixed "Call to undefined function curl_version"
AMOS bot [Sat, 26 Nov 2016 16:06:05 +0000 (00:06 +0800)]
Automatically generated installer lang files
AMOS bot [Fri, 25 Nov 2016 16:04:47 +0000 (00:04 +0800)]
Merge branch 'MOODLE_30_STABLE' into install_30_STABLE
David Monllao [Fri, 25 Nov 2016 07:56:29 +0000 (15:56 +0800)]
weekly release 3.0.7+
Tony Butler [Fri, 28 Oct 2016 16:19:09 +0000 (17:19 +0100)]
MDL-56948 mod_assign: Don't call get_grade_item() unless we have one
Damyon Wiese [Tue, 22 Nov 2016 13:54:03 +0000 (21:54 +0800)]
MDL-57100 JS: Exceptions give exceptions
Exceptions returned from ajax are not in the format expected by the JS, so
an error occurs and the exception popups are not appearing.
Conflicts:
lib/amd/build/notification.min.js
lib/amd/src/notification.js
AMOS bot [Tue, 22 Nov 2016 16:05:30 +0000 (00:05 +0800)]
Automatically generated installer lang files
AMOS bot [Thu, 17 Nov 2016 16:07:02 +0000 (00:07 +0800)]
Automatically generated installer lang files
AMOS bot [Wed, 16 Nov 2016 16:04:55 +0000 (00:04 +0800)]
Automatically generated installer lang files
Eloy Lafuente (stronk7) [Sat, 12 Nov 2016 19:21:29 +0000 (20:21 +0100)]
Moodle release 3.0.7
AMOS bot [Fri, 11 Nov 2016 16:29:19 +0000 (00:29 +0800)]
Automatically generated installer lang files
Dan Poltawski [Fri, 11 Nov 2016 12:05:49 +0000 (12:05 +0000)]
weekly release 3.0.6+
Andrew Nicols [Fri, 11 Nov 2016 07:13:52 +0000 (15:13 +0800)]
Merge branch 'MDL-55121-30' of git://github.com/lameze/moodle into MOODLE_30_STABLE
Andrew Nicols [Fri, 11 Nov 2016 06:00:24 +0000 (14:00 +0800)]
Merge branch 'MDL-55994_30' of https://github.com/bostelm/moodle into MOODLE_30_STABLE
Andrew Nicols [Fri, 11 Nov 2016 04:00:23 +0000 (12:00 +0800)]
Merge branch 'MDL-56417_30' of https://github.com/dmonllao/moodle into MOODLE_30_STABLE
Andrew Nicols [Fri, 11 Nov 2016 03:22:51 +0000 (11:22 +0800)]
Merge branch 'MDL-52216_30_STABLE' of https://github.com/eugeneventer/moodle-fixes into MOODLE_30_STABLE
Simey Lameze [Tue, 4 Oct 2016 04:06:10 +0000 (12:06 +0800)]
MDL-55121 environment: check for unsuported php version 7.1
Eugene Venter [Mon, 31 Oct 2016 21:10:21 +0000 (10:10 +1300)]
MDL-52216 mod_lesson: prevent invalid view modes
Henning Bostelmann [Thu, 10 Nov 2016 16:33:58 +0000 (16:33 +0000)]
MDL-55994 blog: Resolve warning messages in RSS feed generation
Dan Poltawski [Thu, 10 Nov 2016 15:04:35 +0000 (15:04 +0000)]
Merge branch 'MDL-56623_30-messages-to-adressed-to-until' of git://github.com/lucaboesch/moodle into MOODLE_30_STABLE
Dan Poltawski [Thu, 10 Nov 2016 15:01:44 +0000 (15:01 +0000)]
Merge branch 'MDL-55249_m30v1' of https://github.com/sbourget/moodle into MOODLE_30_STABLE
Dan Poltawski [Thu, 10 Nov 2016 13:48:16 +0000 (13:48 +0000)]
MDL-55777 version: bump
Dan Poltawski [Thu, 10 Nov 2016 13:46:47 +0000 (13:46 +0000)]
Merge branch 'MDL-55777-30' of git://github.com/ankitagarwal/moodle into MOODLE_30_STABLE
Eloy Lafuente (stronk7) [Thu, 10 Nov 2016 12:16:06 +0000 (13:16 +0100)]
Merge branch 'MDL-53481-30-uniqsqlparam' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE
Luca Bösch [Thu, 10 Nov 2016 10:13:05 +0000 (11:13 +0100)]
MDL-56623 messages: To (addressed) and to (until) different
In some languages "to" having the meaning of "until" and "to" having the meaning of "addressed to" are different.
This should be taken care of by having two different translation terms.
AMOS BEGIN
CPY [to,core],[addressedto,core]
AMOS END
David Mudrák [Thu, 10 Nov 2016 08:52:31 +0000 (09:52 +0100)]
MDL-53481 availability: Fix unit test to not execute the huge query
Some DBs have troubles to execute such a huge query as generated in this
test. We do not actually need to execute it. All we need is to make sure
that the parameter placeholders are enumerated correctly. So it is what
this new test does.
Nicholas Hoobin [Thu, 13 Oct 2016 04:31:31 +0000 (15:31 +1100)]
MDL-56417 session: Respect the return value of ignore_timeout_hook.
Ankit Agarwal [Wed, 2 Nov 2016 10:36:20 +0000 (16:06 +0530)]
MDL-55777 installation: Check libcurl version on install
Juan Leyva [Mon, 7 Nov 2016 12:46:11 +0000 (12:46 +0000)]
MDL-56268 webservice: Format backtrace to avoid display private datawq
Simey Lameze [Mon, 17 Oct 2016 08:07:16 +0000 (16:07 +0800)]
MDL-51347 core_notes: check view notes capability by course context
Tim Hunt [Mon, 26 Sep 2016 18:46:22 +0000 (19:46 +0100)]
MDL-53744 question file access: fix access checks
Juan Leyva [Thu, 22 Sep 2016 09:52:11 +0000 (10:52 +0100)]
MDL-56065 user: Fix update_users Web Service
Users won’t be updated if:
- They are admins and the user updating is not
- They are the guest user
- They are mnet users
- They are deleted users
David Monllao [Thu, 10 Nov 2016 03:39:15 +0000 (11:39 +0800)]
Merge branch 'MDL-56753-30' of git://github.com/lameze/moodle into MOODLE_30_STABLE
Simey Lameze [Thu, 10 Nov 2016 01:59:11 +0000 (09:59 +0800)]
MDL-56753 mod_assign: behat tests for groups and grouping counting
Simey Lameze [Tue, 8 Nov 2016 01:40:18 +0000 (09:40 +0800)]
MDL-56753 mod_assign: fix groups and submitted counting on grading summary
This also fixes a coding error that was displayed when a group was not part of
assignment grouping.
Andrew Nicols [Thu, 10 Nov 2016 03:14:28 +0000 (11:14 +0800)]
Merge branch 'MDL-55883_m30v1' of https://github.com/sbourget/moodle into MOODLE_30_STABLE
Andrew Nicols [Wed, 9 Nov 2016 07:45:26 +0000 (15:45 +0800)]
Merge branch 'MDL-56755-m30' of https://github.com/micaherne/moodle into MOODLE_30_STABLE
Andrew Nicols [Wed, 9 Nov 2016 06:52:46 +0000 (14:52 +0800)]
Merge branch 'MDL-56726-30-cfgadmin' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE
David Monllao [Wed, 9 Nov 2016 06:24:21 +0000 (14:24 +0800)]
Merge branch 'MDL-56133-m30' of https://github.com/NeillM/moodle into MOODLE_30_STABLE
David Monllao [Wed, 9 Nov 2016 04:50:20 +0000 (12:50 +0800)]
Merge branch 'MDL-53481-30-uniqsqlparam' of git://github.com/mudrd8mz/moodle into MOODLE_30_STABLE
David Mudrák [Tue, 8 Nov 2016 10:07:53 +0000 (11:07 +0100)]
MDL-53481 availability: Fix uniqueness of SQL named param placeholders
Static variables do not behave the way you might expect when accessing
them through the classes inheritance. When accessing a method via self::
or static:: operators, even though the method is inherited, its variable
scope is not. So the method unique_sql_parameter() was using the scope
of the child class and each child class had its own sequence of usp1,
usp2, usp3, ... placeholders. This led to "Incorrect number of query
parameters" error when multiuple condition classes were contributing to
a single SQL query.
All credit should go to Adam Olley who debugged and described the
essence of the problem in the tracker.
Neill Magill [Mon, 31 Oct 2016 10:48:15 +0000 (10:48 +0000)]
MDL-56133 tool_langimport: Changes should be visible after import
Before this change if a language pack was updated by the
\tool_langimport\task\update_langpacks_task scheduled task, changes
would not be available to users until an admin manually cleared the
strings cache.
This change causes the cache to purged when a language pack it update,
this will cause it to rebuild so users will start seeing updates
automatically.
Dan Poltawski [Tue, 8 Nov 2016 10:16:36 +0000 (10:16 +0000)]
weekly release 3.0.6+
Dan Poltawski [Tue, 8 Nov 2016 10:16:35 +0000 (10:16 +0000)]
Merge branch 'install_30_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_30_STABLE
Michael Aherne [Fri, 4 Nov 2016 11:32:21 +0000 (11:32 +0000)]
MDL-56755 assign: Improve documentation of assign::get_grade_item()
Andrew Nicols [Tue, 8 Nov 2016 02:50:31 +0000 (10:50 +0800)]
Merge branch 'wip-MDL-56120-30' of git://github.com/abgreeve/moodle into MOODLE_30_STABLE
David Monllao [Tue, 8 Nov 2016 02:00:01 +0000 (10:00 +0800)]
Merge branch 'MDL-53718_30' of git://github.com/aolley/moodle into MOODLE_30_STABLE
Adrian Greeve [Tue, 8 Nov 2016 00:35:34 +0000 (08:35 +0800)]
MDL-56120 calendar: Unit tests for getting events.
Added a unit test for checking that calendar_get_events
will only return events for activated activities.
Adrian Greeve [Tue, 8 Nov 2016 00:34:36 +0000 (08:34 +0800)]
MDL-56120 calendar: Fix disabled modules showing events.
calendar_get_events now checks for disabled activities
and only shows evetns for active modules.
Eloy Lafuente (stronk7) [Tue, 8 Nov 2016 00:27:58 +0000 (01:27 +0100)]
Merge branch 'MDL-56765-30' of git://github.com/jleyva/moodle into MOODLE_30_STABLE
Russell Smith [Tue, 25 Oct 2016 03:10:36 +0000 (14:10 +1100)]
MDL-54916 filestorage: Only write empty zip on change.
In some cases we may inspect an empty zip file. If we do open
an empty zip file, check that it changed before we attempt to write
it to disk. It may be the case that we were reading the file from
a location that we don't have write access to.
Adam Olley [Thu, 3 Nov 2016 23:48:25 +0000 (10:18 +1030)]
MDL-53718 badges: Dont display course badges when disabled
David Monllao [Mon, 7 Nov 2016 03:16:34 +0000 (11:16 +0800)]
Merge branch 'MDL-56129-30' of git://github.com/andrewnicols/moodle into MOODLE_30_STABLE
David Monllao [Mon, 7 Nov 2016 02:45:22 +0000 (10:45 +0800)]
Merge branch 'MDL-56731_30_STABLE' of https://github.com/tonynlin/moodle into MOODLE_30_STABLE
Jonathon Fowler [Mon, 7 Nov 2016 01:55:11 +0000 (09:55 +0800)]
MDL-56129 core: Change HTTP error code for iOS 10 video playback
This patch changes the effective response code from a 407 to a 403 when
erroring on iOS 10 and when a HTTP_X_PLAYBACK_SESSION_ID HTTP header is
found.
This causes the iOS Media framework to send the cookie with the request
which subsequently succeeds.
AMOS bot [Sun, 6 Nov 2016 16:05:02 +0000 (00:05 +0800)]
Automatically generated installer lang files
Juan Leyva [Fri, 4 Nov 2016 15:51:05 +0000 (15:51 +0000)]
MDL-56765 webservice: After a new session is started unset old preferences
Dan Poltawski [Fri, 4 Nov 2016 14:31:19 +0000 (14:31 +0000)]
Merge branch 'wip-MDL-54986-30' of https://github.com/Beedell/moodle into MOODLE_30_STABLE
Dan Poltawski [Fri, 4 Nov 2016 14:07:27 +0000 (14:07 +0000)]
Merge branch 'MDL-53945_30' of git://github.com/aolley/moodle into MOODLE_30_STABLE
Tony Lin [Thu, 3 Nov 2016 11:35:25 +0000 (11:35 +0000)]
MDL-56731 groups: Fixes breadcrumb when returning to groups/index.php
Dan Poltawski [Fri, 4 Nov 2016 11:17:55 +0000 (11:17 +0000)]
weekly release 3.0.6+
Dan Poltawski [Fri, 4 Nov 2016 09:59:36 +0000 (09:59 +0000)]
MDL-56673 tool_templatelibrary: fix externallib backwards compat
The function now matches the VALUE_DEFAULT option of the service.