snoopdave opened a new pull request, #205: URL: https://github.com/apache/roller/pull/205
Fixes [ROL-2184](https://issues.apache.org/jira/browse/ROL-2184). ## Summary Desktop images pasted or dragged into the rich text editor remain visible while editing but disappear from published entries because their `data:` sources are removed during rendering. This change converts PNG, JPEG, and GIF data images to Roller media files when uploads are available to the author. If uploads are disabled or the author cannot upload, it keeps validated images inline. Saving an older entry applies the same handling to images already in its text or summary. It also adds `weblog.inlineImages.preferInline` for operators who want inline storage even when uploads are available, limits inline content to 60,000 UTF-8 bytes per field, permits validated data images through the HTML sanitizer, and updates bundled theme image policies and the user guide. ## Verification - `mvn -q -pl app -am -DskipTests compile` — passed - `git diff --check` — passed - Tests and browser verification were not run. ## Notes Custom themes with their own Content Security Policy need `data:` in `img-src` to display inline images. Supersedes #203, which targeted `master`. Targets `roller-6.1.x` for 6.1.7. It will be cherry-picked to `master` after the 6.1.7 release. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
