Skip to content

janw.me

Another tech Blog

WordPress has a function to validate file names

And it’s quite simple sanitize_file_name( '[email protected] Fi(l)e?!.txt' ) will become [email protected]

Official documentation sanitize_file_name

Author admin_janwPosted on 09-Feb-201829-Mar-2021Categories TIL

Post navigation

Previous Previous post: Bash script get own path and name
Next Next post: Composer show available updates

Search

Menu

  • About
  • Plugins
    • Default featured image
    • Disable full site edit
    • uAfrica Shipping

RaspBerry Pi

  • Up and running
    • Opening a Pi to the outside world
    • Only allow ssh key login
  • Installing PHP8.2
  • Installing Nginx
    • Setup Letsencrypt SSL
  • Installing Mysql/MariaDB
  • Installing Selfoss
  • Install Extra Programs

Recent Posts

  • Create full site Zip Backup
  • Get Checksum of a directory
  • Github actions
  • Change saved gutenberg blocks
  • Add Color Pallets to Gutenberg child theme
  • Check DNS records in terminal
janw.me Proudly powered by WordPress