Skip to content

Commit 8ed2354

Browse files
Fixed bug that prevent exact matches on API queries
1 parent 5fc7f2c commit 8ed2354

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pfSense-pkg-API/files/etc/inc/api/framework/APIQuery.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class APIQuery {
118118
case "gte":
119119
return $this->gte($entry[$q], $value);
120120
default:
121-
return false;
121+
return ($entry[$q] === $value);
122122
}
123123
} elseif (is_array($entry[$q])) {
124124
$entry = $entry[$q];

0 commit comments

Comments
 (0)