-
Bug
-
Resolution: Fixed
-
Major
-
3.1.10, 3.2.7, 3.3.4, 3.4.1, 3.5
-
MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
-
wip-
MDL-61242-master -
To replicate the error,
- Setup a EQUELLA repository
- Create a page in a course
- In the tinymce editor, select "Image" button.
- Search and select an image from EQUELLA repository.
A pop-up error box will show "The source url does not match the sourcekey."
This bug is introduced by the new sourcekey parameter for validating source URL.
To solve the error, /repository/equella/callback.php need to be updated as follows:
- After line 71, add
$sourcekey=sha1($source.get_secret_key().sesskey());
- After line 81, add
resource.sourcekey = "$sourcekey";