[wp-hackers] Quick question about sanitize_file_name

Dion Hulse (dd32) wordpress at dd32.id.au
Sat Feb 18 00:13:01 UTC 2012


Things like curly quotes are a PITA, but are probably allowed
characters in a filename. they just need to be encoded properly when
the image url is outputed.
http://core.trac.wordpress.org/ticket/15955 should cover those issues.

On 18 February 2012 11:10, Nathaniel Taintor
<goldenapplesdesign at gmail.com> wrote:
> On Fri, Feb 17, 2012 at 5:05 PM, fris <fris at fris.net> wrote:
>
>> You could trim the curly quotes from the filename string
>>
>>
> Well, yes I could. But then I'd be wondering why I was using a function
> called sanitize_file_name that didn't, you know, sanitize my file names.
>
> Joking aside, I'm just wondering whether this is expected behavior -
> leaving some characters in the file names - and if so, if its enough of an
> issue for anyone else to bother writing a patch for.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list