30921 Commits

Author SHA1 Message Date
Ilya Tregubov
c526971857
Merge branch 'MDL-78745-401' of https://github.com/meirzamoodle/moodle into MOODLE_401_STABLE 2023-09-01 10:55:41 +08:00
Ilya Tregubov
23f56c13a6
Merge branch 'MDL-79107-401-2' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE 2023-09-01 09:27:21 +08:00
Andrew Nicols
3053acf475
MDL-79107 editor_tiny: Target correct element on editor removal 2023-09-01 09:07:59 +08:00
Jun Pataleta
183901ec6d
Merge branch 'MDL-79107-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-08-31 21:09:37 +08:00
Jun Pataleta
e6e6c7e7b3
MDL-79107 qtype_essay: Move non_form_fields.feature under qtype_essay 2023-08-31 21:07:07 +08:00
Andrew Nicols
4ce427c2ac
MDL-79107 editor_tiny: Inform Behat of field type 2023-08-31 21:07:07 +08:00
Jun Pataleta
2a6e9817f1
Merge branch 'MDL-79017-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-31 20:32:03 +08:00
Jun Pataleta
e3cee463b1
Merge branch 'MDL-77657-401-get_extra_scss_code-wrong-order' of https://github.com/danowar2k/moodle into MOODLE_401_STABLE 2023-08-31 17:50:56 +08:00
Sara Arjona
8ad1cceadf
Merge branch 'MDL-78612-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE 2023-08-30 17:55:45 +02:00
Andrew Nicols
92d73c9dee
MDL-78612 core: Wrap modal_factory.create in pendingPromise 2023-08-30 12:42:22 +08:00
meirzamoodle
c2bdabd63c MDL-78745 editor_tiny: Stored text in non-entity form
TinyMCE has a default entity_encoding 'named',
which causes text with diacritic symbols to be converted to HTML entities,
e.g. pâté will be convert to pâté
That will be a problem with the Glossary auto-linking filter if a course has a text concept like pâté,
then the filter will likely fail to get the text concept.
Changing the TinyMCE entity_encoding to 'raw' will resolve the problem.
2023-08-30 09:18:31 +07:00
Huong Nguyen
5f681d2ae2
Merge branch '78241-401-tiny-recordrtc-fix-availability-conditions' of https://github.com/DSI-Universite-Rennes2/moodle into MOODLE_401_STABLE 2023-08-29 10:53:38 +07:00
Huong Nguyen
527e300076
Merge branch 'MDL-78961-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-29 10:48:10 +07:00
Andrew Nicols
0356a9ba84
Merge branch 'MDL-79059-401-2' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-08-29 11:37:07 +08:00
Andrew Nicols
04dda99502
Merge branch 'MDL-79169-int-deprecate-401' of https://github.com/Peterburnett/moodle into MOODLE_401_STABLE 2023-08-29 11:21:00 +08:00
Sara Arjona
33847c2920
Merge branch 'MDL-78707-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-28 16:40:58 +02:00
Sara Arjona
2a6000fc36
Merge branch 'MDL-78656-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-28 16:29:57 +02:00
Ilya Tregubov
bc67d4491c
Merge branch 'MDL-79139-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-28 15:40:51 +08:00
Jun Pataleta
319cc7c82c
MDL-79059 core: Use full name as alt text for user picture links
When the user picture is being rendered as a link but the user's full
name is not being included in the link and the alt text turns out to be
empty, we could end up with a link without a discernible text. This is
an accessibility issue that will affect screen reader users. If this is
the case, use the full name as the user picture's alt text.
2023-08-26 10:40:34 +08:00
Julien Boulen
c79c417ea0 MDL-78241 tiny_recordrtc: fix availability conditions 2023-08-25 18:17:11 +02:00
Jun Pataleta
fe72c72682
Merge branch 'MDL-77988-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-25 10:35:45 +08:00
Peter Burnett
7dac997bdc
MDL-79169 admin: Fix implicit int cast in maintenance warning 2023-08-25 11:15:07 +10:00
Andrew Nicols
a9a76642a4
Merge branch 'MDL-79073-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-25 00:07:20 +08:00
Andrew Nicols
bf47757ef3
Merge branch 'MDL-78811-MOODLE-401' of https://github.com/aydevworks/moodle into MOODLE_401_STABLE 2023-08-25 00:02:49 +08:00
Andrew Nicols
c0ab693e4e
Merge branch 'MDL-78787-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-24 23:58:57 +08:00
Paul Holden
c5967dd7d0
MDL-79139 check: clarify default user role action text. 2023-08-23 13:35:44 +01:00
Paul Holden
ae51bda773
MDL-78787 dml: native casting to char in SQL Server driver.
Ensure the same is used during concatentation to prevent truncation
of data, which was previously set at 255 characters per field.
2023-08-23 00:55:18 +01:00
Paul Holden
367f2bf707
MDL-78961 admin: correct smtppass preset configuration name. 2023-08-22 18:27:36 +01:00
Paul Holden
f7b3caac2c
MDL-78656 output: display menu item titles in primary navigation.
Since custom menu items were merged into the primary navigation/more
menu as part of 56c34d71 and related work, the "title" attribute of
each custom menu item was lost.
2023-08-22 17:30:04 +01:00
Andrew Nicols
6dcb455973
MDL-69187 core_file: Unit test for file_get_typegroup string types 2023-08-22 17:10:36 +01:00
Paul Holden
8034ad8be2
MDL-69187 files: normalize retrieval of mimetypes from groups array.
Ensure that the following both return consistently, so that filepicker
form elements behave the same for each when defining "accepted_types":

    '.html, .txt'
    ['.html', '.txt']
2023-08-22 09:56:17 +01:00
Paul Holden
08344a8c4b
MDL-79073 question: detect missing context when deleting question. 2023-08-22 09:45:25 +01:00
Paul Holden
f9aa8a5d75
MDL-79017 core: re-factor method to unserialize array.
We can use the existing helper for object unserialization as the
base for this method, rather than manual string parsing.
2023-08-21 21:02:45 +01:00
Paul Holden
194458b229
MDL-78707 forms: improve form container collapsing mechanism.
By using a more explicit selector for matching containers we avoid
previous problems such as incorrect count, and collapsing of elements
that had the same class name.
2023-08-21 12:38:57 +01:00
Daniel Poggenpohl
92ee1c561e MDL-77657 theme: Fix get_pre_scss_code load order
This led to problems with grandchild themes,
depending on their direct parent's prescsscallback.
2023-08-18 16:21:02 +02:00
Daniel Poggenpohl
862e1e10c2 MDL-77657 theme: Fix get_extra_scss_code load order
This led to problems with grandchild themes,
depending on their direct parent's extrascsscallback.
2023-08-18 16:21:02 +02:00
Andrew Nicols
d6a9f01cc9
Merge branch 'MDL-78684-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2023-08-16 22:44:35 +08:00
Petr Skoda
3847e0ba04 MDL-78505 core: stop mangling existing Mardown in text editors
The problem is that HTML Purifier is not compatible with Markdown,
that means we cannot sanitise Markdown texts before editing.

Luckily Markdown has to use plain text editor which does not have
XSS problems.

The only tiny downside is that Markdown cannot be allowed
in "trust text" areas any more.
2023-08-15 14:27:07 +02:00
Petr Skoda
05ffcf0579 MDL-78505 Revert "MDL-32114 form: markdown must be preserved on saving post"
This partially reverts commit 4a31dd69d6d89818f676ece916e573aa894d49d6.
2023-08-15 14:27:07 +02:00
Jun Pataleta
88459bba94
MDL-78983 core: Preserve default behaviour of flipping question icon
Introduce a lang string `questioniconfollowlangdirection` that will
allow the current behaviour of displaying the question mark icon
in RTL languages in the same manner as the current language.
2023-08-11 16:11:05 +07:00
Jun Pataleta
b504d19c12
MDL-78983 core: Fix question mark icon direction flipping
This fixes the changes made in MDL-75047:
* Change `thisicondirection` langconfig string to a more specific one
  like `questionicondirection`.
* Use existing direction string value `ltr` for the value of
  `questionicondirection`. Also add a comment to at least provide some
  form of documentation for it.
* Improve the logic for applying the horizontal flipping class for the
  question icon:
  - Check first if the icon is a question icon
  - Flip the icon if `questionicondirection` is set to `rtl`.
2023-08-11 11:48:10 +08:00
Jun Pataleta
9e665137d4
Merge branch 'MDL-78962_401' of https://github.com/timhunt/moodle into MOODLE_401_STABLE 2023-08-10 18:44:29 +07:00
Jun Pataleta
53b33f7b0e
Merge branch 'MDL-77817-401' of https://github.com/meirzamoodle/moodle into MOODLE_401_STABLE 2023-08-10 18:44:27 +07:00
raortegar
48dc9e6582
MDL-74289 lib: Improve the proxy bypass matching 2023-08-10 18:44:10 +07:00
Tim Hunt
e726198d4d MDL-78962 core/loadingicon: remove jQuery requirement in the API 2023-08-09 21:20:32 +01:00
Paul Holden
a11938293e MDL-78647 files: safer unserializing of file reference data. 2023-08-09 04:50:21 +00:00
Huong Nguyen
00e6ac4ad8
Merge branch 'MDL-75047-MOODLE_401_STABLE' of https://github.com/SysBind/moodle into MOODLE_401_STABLE 2023-08-09 11:30:49 +07:00
Ilya Tregubov
4732fa0b13
Merge branch 'MDL-78714-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE 2023-08-09 12:05:24 +08:00
Andrew Nicols
d8c911ccb4
MDL-78714 editor_tiny: Disable HTML Sanitisation in TinyMCE
This is in keeping with other Editors such as Atto and resolves an issue
where DOM Purification incorrectly identifies HTML-like string content
as an HTML tag with a JS variable.

Moodle already performs XSS sanitisation using HTML Purifier in PHP.
2023-08-09 10:21:39 +08:00
Andrew Nicols
e8eb8943e1
MDL-78714 editor_tiny: Add xss_sanitize option to TinyMCE
To address a potential data loss issue, a feature introduced in TinyMCE
6.4.0 to disable client-side XSS sanitisation must be backported.
2023-08-09 10:21:39 +08:00