Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mike Taylor 155 posts 353 karma points
    Nov 23, 2011 @ 12:56
    Mike Taylor
    0

    Apostrophes in image filename causing problems

    If an image is uploaded with an apostrophe in the filename, Pixlr throws a Javascript error on this line in /umbraco/editMedia.aspx:

    pixlrLink.getAttributeNode('onclick').value = originalUrl.replace('filename-with-'apostrophe'-here', textbox.val().replace('|', ''));

    Is this a known issue? I'm using 1.3 of the Pixlr package in 4.7.1.

    Thanks,

    Mike

     

  • Bjørn Fridal 274 posts 784 karma points
    Nov 23, 2011 @ 15:27
    Bjørn Fridal
    0

    Hi Mike,

    I just tested it and Pixlr is a bit stricter, in regards to filenames, than Umbraco which allows almost everything. It doesn't allow an apostrophe in the filename.

    I am not sure what could be done. UrlEncoding an apostrophe doesn't change anything as far as I know and they obviously can't be removed from Pixlr Url.

    Cheers
    Bjørn

  • Mike Taylor 155 posts 353 karma points
    Nov 23, 2011 @ 15:39
    Mike Taylor
    0

    Hi Bjørn

    I got it working in the end by tweaking the source code to do some replacing of apostrophes with %27 (which is a URL encoded apostrophe) in the filename, and some stripping of apostrophes completely in the titles.

    Cheers :-)

    Mike

  • Bjørn Fridal 274 posts 784 karma points
    Nov 24, 2011 @ 12:57
    Bjørn Fridal
    0

    Hi Mike,

    Excellent :)

    Cheers
    Bjørn

Please Sign in or register to post replies

Write your reply to:

Draft