Skip to content

Commit 44bab85

Browse files
committed
fix security vulnerability in mysql tools
1 parent 72735d0 commit 44bab85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Tools/Toolkits/MySQL/MySQLWriteTool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function __invoke(string $query, ?array $parameters = []): string
9797
return "Query executed successfully. {$rowCount} row(s) affected.";
9898
}
9999

100-
protected function validate($query): bool
100+
protected function validate(string $query): bool
101101
{
102102
// Check for forbidden keywords that might be in subqueries
103103
foreach ($this->forbiddenStatements as $forbidden) {

0 commit comments

Comments
 (0)