Title: Disable sanitize names
Last modified: September 23, 2018

---

# Disable sanitize names

 *  Resolved [terranaut.dk](https://wordpress.org/support/users/terranautdk/)
 * (@terranautdk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/disable-sanitize-names/)
 * Hi,
 * Is there any way of disable sanitize_name (i.e. the photoname)? I know there 
   is some security issues while using ImageMagick, but if you is the only uploader
   to the albums, it shouldn’t be of any problem.
 * If thats the case, it would be nice to have a disable function in the settings(
   could be set to enable by default).
 * The issue is that I use the filename as the photoname in the albums and heavily
   use ‘space’, ‘(‘ and ‘)’ and also use the photoname to adding additional exifs(
   camera type, lens etc).
 * Yours sincerely
 * Rasmus
    [http://www.terranaut.dk](http://www.terranaut.dk)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdisable-sanitize-names%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/disable-sanitize-names/#post-10715443)
 * Just to be sure: do you use ImageMagick and does it still work for you in version
   6.9.14?
 *  Thread Starter [terranaut.dk](https://wordpress.org/support/users/terranautdk/)
 * (@terranautdk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/disable-sanitize-names/#post-10718293)
 * When I try to upload files, file names will be sanitized, so I guess my webhotel
   is running with ImageMagick.
 * The problem is that I do not want my file names sanitized so a way to disable
   this would be fine. Either by outcomment this in the code or by having a deactivation
   option in the settings that is set to default on and thus your own concern if
   you set it to off.
 * Hope that gives a bit more sense 🙂
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/disable-sanitize-names/#post-10721247)
 * I will change it in 6.9.15 as follws: (from the changelog)
 * When ImageMagick is active and filename as default photoname has been defined:
   
   Uploading files with spaces and brackets in the name will have their photonames
   correctly derived from the original filename. The filename as saved in the database
   and on disk will be sanitized. This does not apply to photo imports, because 
   their names are always sanitized before processing.
 *  Thread Starter [terranaut.dk](https://wordpress.org/support/users/terranautdk/)
 * (@terranautdk)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/disable-sanitize-names/#post-10730185)
 * hi Jacob,
 * Yes – that would be more than nice 🙂
 * /Rasmus
 *  Thread Starter [terranaut.dk](https://wordpress.org/support/users/terranautdk/)
 * (@terranautdk)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/disable-sanitize-names/#post-10730187)
 * Closed

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Disable sanitize names’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-photo-album-plus.svg)
 * [WP Photo Album Plus](https://wordpress.org/plugins/wp-photo-album-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-photo-album-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-photo-album-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-photo-album-plus/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [terranaut.dk](https://wordpress.org/support/users/terranautdk/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/disable-sanitize-names/#post-10730187)
 * Status: resolved