Skip to content

Commit 5d97f67

Browse files
committed
Prevented SQL Injection
1 parent 738b9cd commit 5d97f67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

read.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
// Check if both conditions passed, build where conditions
5656
$conditions = isset($requestData['conditions']) ? buildWhereClause($conn, $requestData['conditions']) : '';
5757
$rawConditions = isset($requestData['rawConditions']) ? implode(' ', $requestData['rawConditions']) : '';
58-
// mysqli_real_escape_string($conn, $condition['on']);
59-
echo $rawConditions;
58+
6059
// Check if both conditions and rawConditions are passed in the request
6160
if ($conditions && $rawConditions) {
6261
throw new Exception('You cannot pass both conditions or rawConditions in the request, use only one of them');

0 commit comments

Comments
 (0)