#19 html in snippet description scrambles snippet summary

open
nobody
General (15)
1
2006-03-16
2006-03-16
mathew
No

If there are html tags in the description of a snippet,
the page that shows the snippet summaries may be
scrambled, because html tags have not been escaped. It
seems to be solved by changing line 31 of file
description.php from:

echo substr($d, 0, 100)."...";

to:

echo htmlentities(substr($d, 0, 100))."...";

not sure if this causes other problems, but it solves
this particular problem for me.

Discussion

  • mathew
    mathew
    2006-03-16

    • priority: 5 --> 1