Hello everyone,
I'm having a small issue with image files that have an ampersand "&" in the file name. Basically, it's messing up the "browse server" when it tries to list the images in a directory. Could anyone point me in the right direction as to which files i need to concentrate on to fix this issue with code? It can be hard tracking stuff down in FCK sometimes Thanks in advance!
Mon, 01/08/2007 - 13:07
#1
RE: image names with "&" throwing errors
files = files & '<File name="#qDir.name[i]#" size="#IIf( fileSizeKB GT 0, DE( fileSizeKB ), 1)#" />';
to
files = files & '<File name="#XMLFormat(qDir.name[i])#" size="#IIf( fileSizeKB GT 0, DE( fileSizeKB ), 1)#" />';
It turns out that the newer version of ColdFusion (at least 7) does not properly escape certain characters and hence any filename with an "&" in it wasn't being read properly.