Problem/Motivation
Notice: Trying to access array offset on value of type bool in ckeditor_file_download() (line 653 of ckeditor/ckeditor.module).
Steps to reproduce
Proposed resolution
Move the info call out and check the value is correct.
@see possible return values of FALSE https://api.drupal.org/api/drupal/includes%21image.inc/function/image_ge...
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | ckeditor-notice-ckeditor-file-download-3185298-5.patch | 496 bytes | vokiel |
| #2 | 3185298-2.patch | 551 bytes | joelpittet |
Comments
Comment #2
joelpittetComment #3
vokielThe initial
preg_match()checks ifimage_get_info()should be even called. Changes in the patch forces to always do so. IMHO there should be another check.Comment #4
joelpittetThat’s fair @vokiel and could you use traditional array for d7 and Uppercase NULL for codling standards?
Comment #5
vokielSorry @joelpittet for those coding standards. Fixed patch ready for review.
Comment #6
joelpittetThanks, this is reviewed and tested!
Comment #8
vokiel