Results 1 to 3 of 3

Thread: Ampersand in filenames

  1. #1
    Join Date
    Sep 2008
    Posts
    43
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Ampersand in filenames

    Hi

    I'm hosting a site created by another developer which hasn't been updated in months. Today the client has noticed some missing images and URLs not working - seemingly all files with an ampersand (&) in them. The URLs give a 'page not found' even though they do exist and the browser doesn't load images with '&' in them.

    I can go through and remove them (and advise the developer not to use odd characters in filenames!) but have there been any changes on the server that would explain this happening? As I say - the files haven't been changed in ages so I can't think what else it would be.

    One affected site is on Beryllium and another is on Fluorine.

    Thanks

    UPDATE: just tried uploading a file called test&test.htm to 8 different non-RFH servers and it worked on 7 of them, so I presume it must be a server setting.

    And I've just realised that this has big implications for some of my sites with user-uploaded content such as photos etc.
    Last edited by penfold33; 2nd September 2010 at 04:50 PM. Reason: Extra info

  2. #2
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    This problem is being caused by a security update recently made across all our web servers - the security update is blocking the URL you mentioned because it contains the system character "&" (ampersand) in a file/folder name.

    Is it possible to rename the file to something different?
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. #3
    Join Date
    Sep 2008
    Posts
    43
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Hi Warren

    Yes I've already fixed the files in the sites they were spotted in. As I say though - it's got more implications for me for user uploaded content. But nothing insurmountable - just need to write a script to go through my database tables and upload folders and strip out the existing ampersands and change my scripts to remove them on upload in future. Should be fine.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •