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

Last post 03-04-2011, 8:04 AM by Eric. 1 replies.
Sort Posts: Previous Next
  •  03-04-2011, 5:06 AM 66538

    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
     
  •  03-04-2011, 8:04 AM 66543 in reply to 66538

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

    Dear Rich,
     
    Please open "\CuteSoft_Client\CuteEditor\Configuration\Security\Default.config"
     
    Change
     <security name="filenamePattern">^[a-zA-Z0-9\._\s-\#]+$</security>
    to
     <security name="filenamePattern">^[a-zA-Z0-9\._\s-\#\u0026]+$</security>
     
    Thank you for asking
View as RSS news feed in XML