Thumbnails in Image Gallery not working for images with ampersand in filename

  •  03-04-2011, 5:06 AM

    Thumbnails in Image Gallery not working for images with ampersand in filename

    Hello.
     
    I'm getting "Not Found" errors when trying to view the Image Gallery dialog if there are images in there which have an ampersand as part of their filename. Here is an example of a URL which is causing the issue:
     
    /MySite/CuteSoft_Client/CuteEditor/Load.ashx?type=thumb&setting=!3wEWBAUFZW4tZ2IFAyRhMRUDGXNlY3VyaXR5OkltYWdlR2FsbGVyeVBhdGgZc2VjdXJpdHk6SW1hZ2VCcm93c2VyUGF0aBlzZWN1cml0eTpGaWxlc0dhbGxlcnlQYXRoFQMTfi9VSS9NZWRpYS9BcHByb3ZlZBN!1L1VJL01lZGlhL0FwcHJvdmVkE34vVUkvTWVkaWEvQXBwcm92ZWRuVnstfcK3ClAZlZHYwf!1KTFHUhQ!2!2&VFilePath=/MySite/UI/Media/Approved/Learning%20&%20Development%20Brochure.jpg&Width=80&Height=80
     
    So, it is obvious that the ampersand character in the filename ("Learning & Development Brochure.jpg") is messing up the query string by not being URL encoded to %26.
     
    Any advice on how I can avoid this problem?
     
    Thanks,
     
    Rich
     
View Complete Thread