Version Description
Download this release
Release Info
Developer | reedyseth |
Plugin | Subscribe To Comments Reloaded |
Version | 141103 |
Comparing to | |
See all releases |
Code changes from version 141025 to 141103
- options/index.php +1 -0
- readme.txt +9 -1
- subscribe-to-comments-reloaded.php +3 -3
- templates/request-management-link.php +12 -6
options/index.php
CHANGED
@@ -11,6 +11,7 @@ function subscribe_reloaded_update_option( $_option = '', $_value = '', $_type =
|
|
11 |
}
|
12 |
|
13 |
// Prevent XSS/CSRF attacks
|
|
|
14 |
$_value = esc_attr( $_value ); // esc_attr Will encode all the text.
|
15 |
|
16 |
switch ( $_type ) {
|
11 |
}
|
12 |
|
13 |
// Prevent XSS/CSRF attacks
|
14 |
+
$_value = stripslashes( $_value );
|
15 |
$_value = esc_attr( $_value ); // esc_attr Will encode all the text.
|
16 |
|
17 |
switch ( $_type ) {
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=XF86X
|
|
5 |
Tags: subscribe, comments, notification, subscription, manage, double check-in, follow, commenting
|
6 |
Requires at least: 2.9.2
|
7 |
Tested up to: 4.0
|
8 |
-
Stable tag:
|
9 |
|
10 |
Subscribe to Comments Reloaded allows commenters to sign up for e-mail notifications of subsequent replies.
|
11 |
|
@@ -71,6 +71,10 @@ where you have you messages with HTML.
|
|
71 |
|
72 |
== Upgrade Notice ==
|
73 |
|
|
|
|
|
|
|
|
|
74 |
= v141025 =
|
75 |
|
76 |
v1410124 Fixed several issues reported on the support forum like broken links, raw HTML on the messages, clean user interface with buttons not needed. See the change log for details.
|
@@ -81,6 +85,10 @@ v1410124 Fixed several issues reported on the support forum like broken links, r
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
|
|
84 |
= v141025 =
|
85 |
* **Fix** Post variable missing on request_management_link.php.
|
86 |
* **Change** the helper class for the function esc_attr( $_value ) to safety add the URL.
|
5 |
Tags: subscribe, comments, notification, subscription, manage, double check-in, follow, commenting
|
6 |
Requires at least: 2.9.2
|
7 |
Tested up to: 4.0
|
8 |
+
Stable tag: 141103
|
9 |
|
10 |
Subscribe to Comments Reloaded allows commenters to sign up for e-mail notifications of subsequent replies.
|
11 |
|
71 |
|
72 |
== Upgrade Notice ==
|
73 |
|
74 |
+
== v141103 ==
|
75 |
+
|
76 |
+
**Broken links and settings issue** Please upgrade to fix the URL creation on the Request Management link and to save the settings values correctly.
|
77 |
+
|
78 |
= v141025 =
|
79 |
|
80 |
v1410124 Fixed several issues reported on the support forum like broken links, raw HTML on the messages, clean user interface with buttons not needed. See the change log for details.
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
== v141103=
|
89 |
+
* **Fix** URL generation for the Request Management link.
|
90 |
+
* **Fix** Saving of settings values. Settings with a single quote was not saving correcting. Every option with a single quote was broken, after update please save the settings on every tab where you have single quotes.
|
91 |
+
|
92 |
= v141025 =
|
93 |
* **Fix** Post variable missing on request_management_link.php.
|
94 |
* **Change** the helper class for the function esc_attr( $_value ) to safety add the URL.
|
subscribe-to-comments-reloaded.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: Subscribe to Comments Reloaded
|
4 |
|
5 |
-
Version:
|
6 |
-
Stable tag:
|
7 |
Requires at least: 2.9.2
|
8 |
Tested up to: 4.0
|
9 |
|
@@ -115,7 +115,7 @@ if ( get_option( 'subscribe_reloaded_show_subscription_box', 'yes' ) == 'yes' )
|
|
115 |
|
116 |
class wp_subscribe_reloaded {
|
117 |
|
118 |
-
public $current_version = '
|
119 |
|
120 |
/**
|
121 |
* Constructor -- Sets things up.
|
2 |
/*
|
3 |
Plugin Name: Subscribe to Comments Reloaded
|
4 |
|
5 |
+
Version: 141103
|
6 |
+
Stable tag: 141103
|
7 |
Requires at least: 2.9.2
|
8 |
Tested up to: 4.0
|
9 |
|
115 |
|
116 |
class wp_subscribe_reloaded {
|
117 |
|
118 |
+
public $current_version = '141103';
|
119 |
|
120 |
/**
|
121 |
* Constructor -- Sets things up.
|
templates/request-management-link.php
CHANGED
@@ -4,11 +4,14 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
4 |
header( 'Location: /' );
|
5 |
exit;
|
6 |
}
|
7 |
-
global $wp_subscribe_reloaded;
|
8 |
-
global $post;
|
9 |
-
ob_start();
|
10 |
|
|
|
|
|
|
|
|
|
11 |
if ( ! empty( $email ) ) {
|
|
|
|
|
12 |
// Send management link
|
13 |
$from_name = stripslashes( get_option( 'subscribe_reloaded_from_name', 'admin' ) );
|
14 |
$from_email = get_option( 'subscribe_reloaded_from_email', get_bloginfo( 'admin_email' ) );
|
@@ -54,8 +57,11 @@ if ( ! empty( $email ) ) {
|
|
54 |
}
|
55 |
?>
|
56 |
<p><?php echo $message ?></p>
|
57 |
-
<form action="<?php
|
58 |
-
|
|
|
|
|
|
|
59 |
<fieldset style="border:0">
|
60 |
<p><label for="subscribe_reloaded_email"><?php _e( 'Email', 'subscribe-reloaded' ) ?></label>
|
61 |
<input type="text" class="subscribe-form-field" name="sre" value="<?php echo isset( $_COOKIE['comment_author_email_' . COOKIEHASH] ) ? $_COOKIE['comment_author_email_' . COOKIEHASH] : 'email'; ?>" size="22" onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue" />
|
@@ -68,4 +74,4 @@ if ( ! empty( $email ) ) {
|
|
68 |
$output = ob_get_contents();
|
69 |
ob_end_clean();
|
70 |
return $output;
|
71 |
-
?>
|
4 |
header( 'Location: /' );
|
5 |
exit;
|
6 |
}
|
|
|
|
|
|
|
7 |
|
8 |
+
require_once WP_PLUGIN_DIR . '/subscribe-to-comments-reloaded/classes/helper.class.php';
|
9 |
+
|
10 |
+
$helper = new subscribeToCommentsHelper();
|
11 |
+
ob_start();
|
12 |
if ( ! empty( $email ) ) {
|
13 |
+
global $wp_subscribe_reloaded;
|
14 |
+
|
15 |
// Send management link
|
16 |
$from_name = stripslashes( get_option( 'subscribe_reloaded_from_name', 'admin' ) );
|
17 |
$from_email = get_option( 'subscribe_reloaded_from_email', get_bloginfo( 'admin_email' ) );
|
57 |
}
|
58 |
?>
|
59 |
<p><?php echo $message ?></p>
|
60 |
+
<form action="<?php if ( $helper->verifyXSS( $_SERVER['REQUEST_URI'] ) ) {
|
61 |
+
echo "#";
|
62 |
+
} else {
|
63 |
+
echo $_SERVER['REQUEST_URI'];
|
64 |
+
} ?>" method="post" onsubmit="if(this.subscribe_reloaded_email.value=='' || this.subscribe_reloaded_email.value.indexOf('@')==0) return false">
|
65 |
<fieldset style="border:0">
|
66 |
<p><label for="subscribe_reloaded_email"><?php _e( 'Email', 'subscribe-reloaded' ) ?></label>
|
67 |
<input type="text" class="subscribe-form-field" name="sre" value="<?php echo isset( $_COOKIE['comment_author_email_' . COOKIEHASH] ) ? $_COOKIE['comment_author_email_' . COOKIEHASH] : 'email'; ?>" size="22" onfocus="if(this.value==this.defaultValue)this.value=''" onblur="if(this.value=='')this.value=this.defaultValue" />
|
74 |
$output = ob_get_contents();
|
75 |
ob_end_clean();
|
76 |
return $output;
|
77 |
+
?>
|