Skip to content

Commit 7dacaf7

Browse files
authored
Merge pull request #530 from MultinetInteractive/master
5.1.2
2 parents 950d798 + 368b9e0 commit 7dacaf7

8 files changed

Lines changed: 48 additions & 29 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [5.1.2](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.1...v5.1.2) (2024-10-10)
6+
7+
8+
### Security
9+
10+
* Fix potential LFI vulnerability ([89a8479](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/89a84796caaf40187c0272850632da92ee01477f))
11+
512
### [5.1.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.0...v5.1.1) (2024-09-18)
613

714

PLUGIN-CHECKSUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
82f331131f31fd66cae9790bd4a79bc3
1+
a2c2b6df1eecfb08168b748f3a2c45be

eduadmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin URI: https://www.eduadmin.se
1010
* Description: EduAdmin plugin to allow visitors to book courses at your website
1111
* Tags: booking, participants, courses, events, eduadmin, lega online
12-
* Version: 5.1.1
12+
* Version: 5.1.2
1313
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
1515
* Requires at least: 6.0

includes/edu-shortcodes.php

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function eduadmin_get_detail_view( $attributes ) {
107107
);
108108
wp_enqueue_style( 'eduadmin_frontend_detail' );
109109

110-
$attributes = shortcode_atts(
110+
$attributes = shortcode_atts(
111111
array(
112112
'template' => $selected_template,
113113
'courseid' => null,
@@ -118,6 +118,16 @@ function eduadmin_get_detail_view( $attributes ) {
118118
normalize_empty_atts( $attributes ),
119119
'eduadmin-detailview'
120120
);
121+
122+
switch ( $attributes['template'] ) {
123+
case "template_A":
124+
case "template_B":
125+
break;
126+
default:
127+
$attributes['template'] = "template_A";
128+
break;
129+
}
130+
121131
EDU()->session['checkEmail'] = null;
122132
EDU()->session['needsLogin'] = null;
123133
unset( EDU()->session['checkEmail'] );
@@ -197,6 +207,16 @@ function eduadmin_get_booking_view( $attributes ) {
197207
normalize_empty_atts( $attributes ),
198208
'eduadmin-bookingview'
199209
);
210+
211+
switch ( $attributes['template'] ) {
212+
case "template_A":
213+
case "template_B":
214+
break;
215+
default:
216+
$attributes['template'] = "template_A";
217+
break;
218+
}
219+
200220
if ( ! EDU()->is_checked( 'eduadmin-useLogin', false ) || ( isset( EDU()->session['eduadmin-loginUser'] ) && ( ( isset( EDU()->session['eduadmin-loginUser']->Contact->PersonId ) && 0 !== EDU()->session['eduadmin-loginUser']->Contact->PersonId ) || isset( EDU()->session['eduadmin-loginUser']->NewCustomer ) ) ) ) {
201221
$str = include_once EDUADMIN_PLUGIN_PATH . '/content/template/bookingTemplate/' . $attributes['template'] . '.php';
202222
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eduadmin-wordpress-plugin",
33
"private": true,
4-
"version": "5.1.1",
4+
"version": "5.1.2",
55
"repository": "https://github.com/MultinetInteractive/EduAdmin-WordPress.git",
66
"author": "Chris Gårdenberg <chga@multinet.se>",
77
"license": "MIT",

readme.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# EduAdmin Booking
22
- Requires at least: 6.0
33
- Tested up to: 6.6
4-
- Stable tag: 5.1.1
4+
- Stable tag: 5.1.2
55
- Requires PHP: 8.1
66
- License: GPL3
77
- License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -40,6 +40,13 @@ If you notice that your API key doesn't work any more, you have to contact us.
4040

4141
The full changelog available on [GitHub](https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/CHANGELOG.md)
4242

43+
### [5.1.2](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.1...v5.1.2) (2024-10-10)
44+
45+
46+
#### Security
47+
48+
* Fix potential LFI vulnerability ([89a8479](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/89a84796caaf40187c0272850632da92ee01477f))
49+
4350
### [5.1.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.0...v5.1.1) (2024-09-18)
4451

4552

@@ -66,16 +73,5 @@ The full changelog available on [GitHub](https://github.com/MultinetInteractive/
6673

6774
* Some null handling that is deprecated in newer versions of PHP ([d89c27d](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/d89c27d1dcf6b245ff6fd982ebccdacc1a7a4527))
6875

69-
### [5.0.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.3.0...v5.0.0) (2024-04-08)
70-
71-
72-
#### ⚠ BREAKING CHANGES
73-
74-
* Updated required WP and PHP, changes are already made in code (353e4dd7c1bfa5aa31ee67e0572220acca3a6387)
75-
76-
#### Bug Fixes
77-
78-
* Updated required WP and PHP, changes are already made in code (353e4dd7c1bfa5aa31ee67e0572220acca3a6387) ([29b0adc](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/29b0adc497a8d60d906784dd65ef04c824b42184))
79-
8076

8177

readme.txt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: mnchga
33
Tags: booking, participants, courses, events, eduadmin, lega online
44
Requires at least: 6.0
55
Tested up to: 6.6
6-
Stable tag: 5.1.1
6+
Stable tag: 5.1.2
77
Requires PHP: 8.1
88
License: GPL3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -45,6 +45,13 @@ If you notice that your API key doesn't work any more, you have to contact us.
4545

4646
The full changelog available on [GitHub](https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/CHANGELOG.md)
4747

48+
### [5.1.2](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.1...v5.1.2) (2024-10-10)
49+
50+
51+
#### Security
52+
53+
* Fix potential LFI vulnerability ([89a8479](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/89a84796caaf40187c0272850632da92ee01477f))
54+
4855
### [5.1.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.1.0...v5.1.1) (2024-09-18)
4956

5057

@@ -71,16 +78,5 @@ The full changelog available on [GitHub](https://github.com/MultinetInteractive/
7178

7279
* Some null handling that is deprecated in newer versions of PHP ([d89c27d](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/d89c27d1dcf6b245ff6fd982ebccdacc1a7a4527))
7380

74-
### [5.0.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.3.0...v5.0.0) (2024-04-08)
75-
76-
77-
#### ⚠ BREAKING CHANGES
78-
79-
* Updated required WP and PHP, changes are already made in code (353e4dd7c1bfa5aa31ee67e0572220acca3a6387)
80-
81-
#### Bug Fixes
82-
83-
* Updated required WP and PHP, changes are already made in code (353e4dd7c1bfa5aa31ee67e0572220acca3a6387) ([29b0adc](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/29b0adc497a8d60d906784dd65ef04c824b42184))
84-
8581

8682

0 commit comments

Comments
 (0)