Skip to content

Commit abce450

Browse files
authored
Merge pull request #545 from MultinetInteractive/master
v5.4.3
2 parents 0b882e0 + f47a836 commit abce450

16 files changed

Lines changed: 60 additions & 53 deletions

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.4.3](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.4.2...v5.4.3) (2026-09-02)
6+
7+
8+
### Security
9+
10+
* **API:** Fixed proper filtering for OData variables to close a report from Patchstack. ([29ed776](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/29ed776df86d8ea81f5cc450c8d7348b21474d80))
11+
512
### [5.4.2](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.4.0...v5.4.2) (2026-04-30)
613

714

PLUGIN-CHECKSUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7728161a3a97dd741671f333b181ab1d
1+
e0c928c4d26838ef036a5067b4f081b4

class/class-eduadmin-loginhandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function process_login() {
2525

2626
$possible_persons = EDUAPI()->OData->Persons->Search(
2727
'PersonId',
28-
"CanLogin and $login_field eq '" . sanitize_text_field( wp_unslash( $_POST['eduadminloginEmail'] ) ) . '\'', // Input var okay.
28+
"CanLogin and $login_field eq " . edu_odata_quote( sanitize_text_field( wp_unslash( $_POST['eduadminloginEmail'] ) ) ), // Input var okay.
2929
'CustomFields($filter=ShowOnWeb;)',
3030
null,
3131
null,

content/template/bookingTemplate/-login-handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
$possible_persons = EDUAPI()->OData->Persons->Search(
1111
null,
12-
"$login_field eq '" . sanitize_text_field( wp_unslash( $_POST['eduadminloginEmail'] ) ) . '\'', // Input var okay.
12+
"$login_field eq " . edu_odata_quote( sanitize_text_field( wp_unslash( $_POST['eduadminloginEmail'] ) ) ), // Input var okay.
1313
'CustomFields($filter=ShowOnWeb;)'
1414
)['value'];
1515

content/template/myPagesTemplate/bookings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737

3838
$events = EDUAPI()->OData->Events->Search(
3939
'EventId,EventName,CourseName,InternalCourseName,OnDemand,StartDate,EndDate',
40-
'Bookings/any(b:b/Customer/CustomerId eq ' . $customer->CustomerId . ') and StatusId eq 1',
41-
'Bookings($expand=Participants($select=FirstName,LastName,Arrived,GradeName,Canceled,PriceNameId),UnnamedParticipants($select=PriceNameId,Quantity,Canceled);$filter=Customer/CustomerId eq ' . $customer->CustomerId . ' and NumberOfParticipants gt 0;$select=BookingId,Created,NumberOfParticipants,TotalPriceIncVat,TotalPriceExVat)'
40+
'Bookings/any(b:b/Customer/CustomerId eq ' . intval( $customer->CustomerId ) . ') and StatusId eq 1',
41+
'Bookings($expand=Participants($select=FirstName,LastName,Arrived,GradeName,Canceled,PriceNameId),UnnamedParticipants($select=PriceNameId,Quantity,Canceled);$filter=Customer/CustomerId eq ' . intval( $customer->CustomerId ) . ' and NumberOfParticipants gt 0;$select=BookingId,Created,NumberOfParticipants,TotalPriceIncVat,TotalPriceExVat)'
4242
);
4343

4444
$bookings = array();

content/template/myPagesTemplate/certificates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if ( $show_company_certificates ) {
1111
$certificates = EDUAPI()->OData->Persons->Search(
1212
'PersonId,FirstName,LastName,CivicRegistrationNumber',
13-
'CustomerId eq ' . $customer->CustomerId,
13+
'CustomerId eq ' . intval( $customer->CustomerId ),
1414
'Certificates'
1515
)["value"];
1616
} else {

content/template/myPagesTemplate/login-tab-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
if ( $show_company_certificates ) {
1616
$certificates = EDUAPI()->OData->Persons->Search(
1717
'PersonId,FirstName,LastName,CivicRegistrationNumber',
18-
'CustomerId eq ' . $customer->CustomerId,
18+
'CustomerId eq ' . intval( $customer->CustomerId ),
1919
'Certificates'
2020
)["value"];
2121
} else {

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.com
1010
* Description: EduAdmin plugin to allow visitors to book courses at your website
1111
* Tags: booking, participants, courses, events, eduadmin
12-
* Version: 5.4.2
12+
* Version: 5.4.3
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-ajax-functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ function edu_listview_courselist() {
4343
}
4444

4545
if ( ! empty( $category_id ) && ! edu_starts_with( $category_id, 'deep-' ) ) {
46-
$filters[] = 'CategoryId eq ' . $category_id;
46+
$filters[] = 'CategoryId eq ' . intval( $category_id );
4747
} elseif ( ! empty( $category_id ) && edu_starts_with( $category_id, 'deep-' ) ) {
48-
$filters[] = 'Categories/any(c:c/CategoryId eq ' . str_replace( 'deep-', '', $category_id ) . ')';
48+
$filters[] = 'Categories/any(c:c/CategoryId eq ' . intval( str_replace( 'deep-', '', $category_id ) ) . ')';
4949
}
5050

5151
if ( ! empty( $_POST['city'] ) && is_numeric( $_POST['city'] ) ) {
5252
$filters[] = 'Events/any(e:e/LocationId eq ' . intval( $_POST['city'] ) . ')';
5353
}
5454

5555
if ( ! empty( $_POST['subject'] ) ) {
56-
$filters[] = 'Subjects/any(s:s/SubjectName eq \'' . sanitize_text_field( $_POST['subject'] ) . '\')';
56+
$filters[] = 'Subjects/any(s:s/SubjectName eq ' . edu_odata_quote( sanitize_text_field( wp_unslash( $_POST['subject'] ) ) ) . ')';
5757
}
5858

5959
if ( ! empty( $_POST['subjectid'] ) ) {

includes/edu-login-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function edu_send_forgotten_password( $login_value ) {
77

88
$cc = EDUAPI()->OData->Persons->Search(
99
null,
10-
"$login_field eq '" . sanitize_text_field( $login_value ) . '\' and CanLogin',
10+
"$login_field eq " . edu_odata_quote( sanitize_text_field( wp_unslash( $login_value ) ) ) . ' and CanLogin',
1111
null,
1212
null,
1313
null,

0 commit comments

Comments
 (0)