Item11682: LINKTOOLTIPINFO html corrupted if text contained quotes and removal created a WikiWord
the issue that is Urgent for me:
client site has tooltips that worked ok on tmwiki, but cause bad html leakage.
its the simple thing i though it was, (to do with ' symbols), and I'm still trying to make an example that shows it for a unit test.
in the process of trying to find it, it seems that
is not always working right. (docco says it should result in
Set LINKTOOLTIPINFO = $username - $date - r$rev: $summary
, but instead i'm getting tips that say on
- Later: - this is probably due to a space at the end of the setting 'on ' - I wonder if this should be chomped for true.
- 21 Mar 2012
mmm, seems that the issue is that someone decided to remove single and double quotes, without replacing them with anything. In the process, string s that were not initially WikiWords
, suddenly become ones. and then corrupt the title="" string with 'create topic' html
so I'm going to fix this by using.... $summary = Foswiki::entityEncode($summary);
now to see if any unit tests fail (tbh, i don't think any other unit tests enable the 'view' script context, so nothing else ever tested tooltips
later: well, that does not
work, as we then proceed to encode those encodings
which of course the unit test does not show.
- 22 Mar 2012
Unit tests are site configuration specific.
- 30 Mar 2012