Closed (fixed)
Project:
IMCE
Version:
8.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jun 2020 at 20:03 UTC
Updated:
9 Jul 2020 at 16:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tjtj commentedComment #3
hodowany commentedI followed the advice from the error message and copied the procedure outlined in https://www.drupal.org/node/2966725 to change the preRenderWidget callback to implement the TrustedCallbackInterface interface. The modification is on the class ImceFileField in the file
/modules/imce/src/ImceFileField.php
class declaration is changed to:
class ImceFileField implements TrustedCallbackInterface {
then add the trusted callback method inside the class
public static function trustedCallbacks() {
return ['preRenderWidget'];
}
That's it. Security error gone. I will attach a diff/patch file below.
Comment #4
thallesComment #5
chekka.de commentedThanks, works fine!
Comment #6
tjtj commentedYes,, thank you!
Comment #7
thallesHow can I reproduce this message?
Comment #8
thallesComment #9
thallesFollow a new patch, the #3 was not applyed to me
Comment #11
thallesThanks @all for your help!
Comment #12
thalles