• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

smileys not rendering after 2.1.8 upgrade

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using a very slightly customized version. I upgraded from 2.1.7b3 to 2.1.8 and now the smileys render as



The emoticons apear fine when composing a new message, but do not appear in the preview or when the message is posted.

Any thoughts on are appreciated?
[originally posted on jforum.net by skipwalker]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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]
 
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic