(Topic ID: 127704)

If an uploaded image has an apostrophe in it, it disappears

By ForceFlow

8 years ago



Topic Stats

  • 10 posts
  • 4 Pinsiders participating
  • Latest reply 8 years ago by robin
  • No one calls this topic a favorite

You

Linked Games

No games have been linked to this topic.

    Topic Gallery

    View topic image gallery

    usa-football
    SafariScreenSnapz041.png
    SafariScreenSnapz040.png
    burns-double-quote-
    burns-single-quote-'.png
    #1 8 years ago

    If I upload an image with an apostrophe in the filename, insert it into the post, and publish the post, the image disappears and seems to get deleted. The image tag with the image number remains behind in the post as raw text.

    #2 8 years ago

    It'll be fixed in the next version.

    2 weeks later
    #3 8 years ago
    burns-single-quote-'.pngburns-single-quote-'.png burns-double-quote-".pngburns-double-quote-".png
    #4 8 years ago

    Looks like the uploads and displays work, but the preview didn't on the double quote.

    SafariScreenSnapz040.pngSafariScreenSnapz040.png

    #5 8 years ago

    Robin, looks like several cases of double quotes not being escaped during the preview.
    They interfere with the HTML quotes.

    Simplest way to reproduce: upload an image named double-quotes".png

    Single quotes is fine (no surprise, no conflict with the HTML double-quotes).

    SafariScreenSnapz041.pngSafariScreenSnapz041.png
    #6 8 years ago

    Safari only? both pics showed up fine for me in FF.

    #7 8 years ago

    Safari, Chrome, and Firefox.

    Preview only. The posted images are fine. Just the preview fails.

    #8 8 years ago

    To reproduce,

    Start a comment on this thread.

    Attach an image with " in the filename.

    Hit preview.

    You don't actually have to post the comment to see the failure; posting actually is fine.

    #9 8 years ago

    ahh, gotcha.

    #10 8 years ago

    usa-football"quote".jpgusa-football"quote".jpg

    Fixed this by urlencoding filenames in post preview.

    Reply

    Wanna join the discussion? Please sign in to reply to this topic.

    Hey there! Welcome to Pinside!

    Donate to Pinside

    Great to see you're enjoying Pinside! Did you know Pinside is able to run without any 3rd-party banners or ads, thanks to the support from our visitors? Please consider a donation to Pinside and get anext to your username to show for it! Or better yet, subscribe to Pinside+!


    This page was printed from https://pinside.com/pinball/forum/topic/if-an-uploaded-image-has-an-apostrophe-in-it-it-disappears and we tried optimising it for printing. Some page elements may have been deliberately hidden.

    Scan the QR code on the left to jump to the URL this document was printed from.