Automattic / batcache

A memcached HTML page cache for WordPress.
http://wordpress.org/extend/plugins/batcache/
284 stars 104 forks source link

Use negative lookahead to allow openssl_* functions #80

Open dero opened 7 years ago

dero commented 7 years ago

The vary_cache_on_function method will disallow all functions containing the substring open. This is likely to prevent the user from creating functions that use fopen, opendir and similar. However it also prevents users from using all functions from the openssl_* family.

Our use case is the following:

This PR adds a negative lookahead to allow the openssl_* functions inside vary_cache_on_function.