Forums

    2 posts

  • avatar
    1118 sounds
    399 posts
    Forum formatting bug.


    Hello, some HTML code in forum posts breaks when saved/posted (I can't tell for sure whether there's a difference between saving and posting):

    ol (ordered list) tags get stripped out. The result (li tags only) gets rendered incorrectly and causes text following it to display incorrectly as well. ol tags should be allowed or be replaced by ul. li tags that are not inside ul/ol tags should be surrounded by ul tags automatically or be stripped out.
    Example 1:

  • List item

  • Example 2:
    http://freesound.org/forum/sample-requests/33180/
    (screenshot)

    I had problems with empty ul (unordered lists) getting inserted at the end of unordered lists when saving/posting. But I can't reproduce that any more.

    Also: in the list above the forum post text field, "li" appears twice:

    To format your text you can use the following HTML tags.
    a, img, strong, b, em, li, u, p, br, ul, li, blockquote, code.

    Click here to lend your support to: Freesound 2011 donations and make a donation at www.pledgie.com !
    Donate to Freesound.org
    so it can serve even more and better sounds to you in the future!
  • avatar
    1118 sounds
    399 posts


    Furter forum bugs:

    1. https links don't work, https a tags get stripped out:

    https://example.com

    example (this was a a tag with a https href attribute, the tag and attribute were stripped out.)

    2. a href inside code tags gets interpreted (not 100% sure it's a bug)

    http://example.com (this url text is inside a code tag)

    3. Smiley faces inside of links get interpreted as smileys:

    h ttp://en.wikipedia.org/wiki/Wikipediatongueublic_domain_resources#U.S._federal_government (broke link, else it would be interpreted)
    ublic_domain_resources#U.S._federal_government" rel="nofollow">http://en.wikipedia.org/wiki/Wikipediatongueublic_domain_resources#U.S._federal_government

    EDIT: 4. Only HTTP (not no-protocoll, not HTTPS) get embedded.
    <img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/12/CargoNet_Di_12_Euro_4000_L%C3%B8nsdal_-_Bolna.jpg/256px-CargoNet_Di_12_Euro_4000_L%C3%B8nsdal_-_Bolna.jpg"/>

    <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/12/CargoNet_Di_12_Euro_4000_L%C3%B8nsdal_-_Bolna.jpg/256px-CargoNet_Di_12_Euro_4000_L%C3%B8nsdal_-_Bolna.jpg"/>

    Click here to lend your support to: Freesound 2011 donations and make a donation at www.pledgie.com !
    Donate to Freesound.org
    so it can serve even more and better sounds to you in the future!

    2 posts