Safari don't display some images of my website

Hi, I would like to understand why my website (www.aprilus.com) does not display all the images on Safari when it works well with Firefox. Instead, I see a blue rectangle with a question mark. I observe the same problem with Safari regarding my site on other computers.


Thank you for your help.

Safari-OTHER, Mac OS X (10.5.8)

Posted on Oct 1, 2012 5:53 AM

Reply
19 replies

Oct 1, 2012 4:45 PM in response to Alksyntrs

You can add some code to your theme's functions.php file that will sanitize any special characters in your image files:



function sanitize_filename_on_upload($filename) {
$ext = end(explode('.',$filename));
// Replace all weird characters
$sanitized = preg_replace('/[^a-zA-Z0-9-_.]/','', substr($filename, 0, -(strlen($ext)+1)));
// Replace dots inside filename
$sanitized = str_replace('.','-', $sanitized);
return strtolower($sanitized.'.'.$ext);
}
add_filter('sanitize_file_name', 'sanitize_filename_on_upload', 10);



See: http://wordpress.org/support/topic/uploaded-image-with-accents-in-name-image-don t-show-in-safari-6?replies=5

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Safari don't display some images of my website

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.