Nginx Helper - Version 1.8.10

Version Description

  • Security bug fix
Download this release

Release Info

Developer rtcamp
Plugin Icon 128x128 Nginx Helper
Version 1.8.10
Comparing to
See all releases

Code changes from version 1.8.9 to 1.8.10

admin/admin.php CHANGED
@@ -118,7 +118,7 @@ namespace rtCamp\WP\Nginx {
118
  if ( !current_user_can( 'manage_options' ) ) {
119
  return;
120
  }
121
- $purge_url = add_query_arg( array( 'nginx_helper_action' => 'purge', 'nginx_helper_urls' => 'all' ) );
122
  $nonced_url = wp_nonce_url( $purge_url, 'nginx_helper-purge_all' );
123
  $admin_bar->add_menu( array( 'id' => 'nginx-helper-purge-all', 'title' => __( 'Purge Cache', 'nginx-helper' ), 'href' => $nonced_url, 'meta' => array( 'title' => __( 'Purge Cache', 'nginx-helper' ), ), ) );
124
  }
118
  if ( !current_user_can( 'manage_options' ) ) {
119
  return;
120
  }
121
+ $purge_url = esc_url( add_query_arg( array( 'nginx_helper_action' => 'purge', 'nginx_helper_urls' => 'all' ) ) );
122
  $nonced_url = wp_nonce_url( $purge_url, 'nginx_helper-purge_all' );
123
  $admin_bar->add_menu( array( 'id' => 'nginx-helper-purge-all', 'title' => __( 'Purge Cache', 'nginx-helper' ), 'href' => $nonced_url, 'meta' => array( 'title' => __( 'Purge Cache', 'nginx-helper' ), ), ) );
124
  }
admin/lib/nginx-general.php CHANGED
@@ -82,7 +82,7 @@ namespace rtCamp\WP\Nginx {
82
  </h3>
83
  <form id="purgeall" action="" method="post" class="clearfix">
84
  <div class="inside">
85
- <?php $purge_url = add_query_arg( array( 'nginx_helper_action' => 'purge', 'nginx_helper_urls' => 'all' ) ); ?>
86
  <?php $nonced_url = wp_nonce_url( $purge_url, 'nginx_helper-purge_all' ); ?>
87
  <table class="form-table">
88
  <tr valign="top">
82
  </h3>
83
  <form id="purgeall" action="" method="post" class="clearfix">
84
  <div class="inside">
85
+ <?php $purge_url = esc_url( add_query_arg( array( 'nginx_helper_action' => 'purge', 'nginx_helper_urls' => 'all' ) ) ); ?>
86
  <?php $nonced_url = wp_nonce_url( $purge_url, 'nginx_helper-purge_all' ); ?>
87
  <table class="form-table">
88
  <tr valign="top">
nginx-helper.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nginx Helper
4
  Plugin URI: https://rtcamp.com/nginx-helper/
5
  Description: Cleans nginx's fastcgi/proxy cache whenever a post is edited/published. Also does few more things.
6
- Version: 1.8.9
7
  Author: rtCamp
8
  Author URI: https://rtcamp.com
9
  Text Domain: nginx-helper
@@ -286,7 +286,7 @@ namespace rtCamp\WP\Nginx {
286
  $this->true_purge_all();
287
  break;
288
  }
289
- wp_redirect(add_query_arg(array('nginx_helper_action' => 'done')));
290
  }
291
 
292
  function true_purge_all() {
3
  Plugin Name: Nginx Helper
4
  Plugin URI: https://rtcamp.com/nginx-helper/
5
  Description: Cleans nginx's fastcgi/proxy cache whenever a post is edited/published. Also does few more things.
6
+ Version: 1.8.10
7
  Author: rtCamp
8
  Author URI: https://rtcamp.com
9
  Text Domain: nginx-helper
286
  $this->true_purge_all();
287
  break;
288
  }
289
+ wp_redirect( esc_url_raw( add_query_arg( array( 'nginx_helper_action' => 'done' ) ) ) );
290
  }
291
 
292
  function true_purge_all() {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: rtcamp, rahul286, saurabhshukla, manishsongirkar36, faishal, desai
3
  Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, rewrite, permalinks
4
  Requires at least: 3.0
5
  Tested up to: 4.2
6
- Stable tag: 1.8.9
7
  License: GPLv2 or later (of-course)
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate Link: http://rtcamp.com/donate/
@@ -114,6 +114,9 @@ Please post your problem in [our free support forum](http://community.rtcamp.com
114
 
115
  == Changelog ==
116
 
 
 
 
117
  = 1.8.9 =
118
  * Default setting fix and wp-cli example correction - by [bcole808](https://profiles.wordpress.org/bcole808/)
119
 
3
  Tags: nginx, cache, purge, nginx map, nginx cache, maps, fastcgi, proxy, rewrite, permalinks
4
  Requires at least: 3.0
5
  Tested up to: 4.2
6
+ Stable tag: 1.8.10
7
  License: GPLv2 or later (of-course)
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Donate Link: http://rtcamp.com/donate/
114
 
115
  == Changelog ==
116
 
117
+ = 1.8.10 =
118
+ * Security bug fix
119
+
120
  = 1.8.9 =
121
  * Default setting fix and wp-cli example correction - by [bcole808](https://profiles.wordpress.org/bcole808/)
122