posted 16 years ago
I found the solution to my problem. I put a bunch of system outs in the PostCommon and SafeHtml to trace where the img src was being removed. It turns out it was being removed by SafeHtml.ensureAllAttributesAreSafe().
The code was considering the "src" attribute in the img tag for the smilie unsafe as it is a relative link rather than a fully qualified url. This was apparently due to the fact that the configuration preference "html.links.allow.relative" is false by default.
Setting this value to true in SystemGlobals.properties solved my problem.
[originally posted on jforum.net by skipwalker]