Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ Found a bug? Have a great feature idea? Get on GitHub and tell us about it and w

Our GitHub has the full list of all prior releases and changelogs for Pods: [https://github.com/pods-framework/pods/releases](https://github.com/pods-framework/pods/releases)

= Unreleased =

* Bug: Fixed Unique field validation so the sanitized value is used in the uniqueness query. Unique fields on table storage pods now correctly block duplicate values and no longer trigger a PHP warning. #7623

= 3.3.9.2 - August 31st, 2026 =

This is a major security hardening release covering multiple areas of the plugin. We recommend updating as soon as possible.
Expand Down
5 changes: 3 additions & 2 deletions classes/PodsAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -9727,6 +9727,9 @@ public function handle_field_validation( &$value, $field, $object_fields, $field

if ( ! in_array( $type, $tableless_field_types, true ) ) {
$exclude = '';

$check_value = pods_sanitize( $value );

$prepare = [
$field,
$check_value,
Expand All @@ -9739,8 +9742,6 @@ public function handle_field_validation( &$value, $field, $object_fields, $field

$check = false;

$check_value = pods_sanitize( $value );

// @todo handle meta-based fields
// Trigger an error if not unique
if ( 'table' === $pod['storage'] ) {
Expand Down
110 changes: 110 additions & 0 deletions tests/codeception/wpunit/Pods/Bug/Bug7623Test.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.