Skip to content

Commit cef0c82

Browse files
committed
Added security checks to public views
1 parent ce29b4a commit cef0c82

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simpay/simpay-wordpress",
3-
"version": "2.2.2",
3+
"version": "2.2.3",
44
"type": "library",
55
"require": {
66
"simpaypl/simpay": "^2.2"

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Contributors: darkgl
33
Donate link: https://darkgl.pl/
44
Tags: simpay, payments, directbiling, sms
55
Requires at least: 6.0
6-
Tested up to: 6.3.1
7-
Stable tag: 2.2.2
6+
Tested up to: 6.6.1
7+
Stable tag: 2.2.3
88
Requires PHP: 8.1
99
License: GPLv2 or later
1010
License URI: https://www.gnu.org/licenses/gpl-2.0.html

simpay-wordpress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: SimPay Wordpress
55
* Plugin URI: https://simpay.pl
66
* Description: Use SimPay SMS service to use during registration or access to the post.
7-
* Version: 2.2.2
7+
* Version: 2.2.3
88
* Author: SimPay
99
* Author URI: https://simpay.pl
1010
* License: GPL-2.0+

view/public/paywall/access-denied-alert.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<?php if (!defined('ABSPATH')) {
2+
exit;
3+
} ?>
4+
15
<div class="simpay-alert-paywall">
26
<h2>Dziękujemy za zainteresowanie!</h2>
37
<p>Dostęp do treści na tej stronie jest zarezerwowany tylko dla płatnych użytkowników.</p>

view/public/register/register-form.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<?php if (!defined('ABSPATH')) {
2+
exit;
3+
} ?>
4+
15
<p class="message">
26
Aby się zarejestrować, wyślij SMS <br>na numer
37
<strong><?php echo $smsNumber; ?></strong><br>

0 commit comments

Comments
 (0)