pluginkollektiv / cachify

Smart but efficient cache solution for WordPress. Use DB, HDD, APC or Memcached for storing your blog pages. Make WordPress faster!
https://wordpress.org/plugins/cachify/
GNU General Public License v2.0
99 stars 31 forks source link

apc: rework sanitization to not use WP functions (#240) #241

Closed stklcode closed 3 years ago

stklcode commented 3 years ago

fixes #240

WordPress is not initialized when the APC proxy is called, so we must not rely on logic like wp_unslash().

Use filter_input to sanitize untrusted data and drop the unslashing, as it is not necessary in this place.