Skip to content

Commit 1fef158

Browse files
committed
Merge pull request #133 from arclyte/master
Update HtmlToolbarHelper to use ‘sha1’ for the explain_sql hash
2 parents a6d601c + 75b3efa commit 1fef158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Controller/ToolbarAccessController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function sql_explain() {
108108
) {
109109
throw new BadRequestException('Invalid parameters');
110110
}
111-
$hash = Security::hash($this->request->data['log']['sql'] . $this->request->data['log']['ds'], null, true);
111+
$hash = Security::hash($this->request->data['log']['sql'] . $this->request->data['log']['ds'], 'sha1', true);
112112
if ($hash !== $this->request->data['log']['hash']) {
113113
throw new BadRequestException('Invalid parameters');
114114
}

0 commit comments

Comments
 (0)