mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed CSRF security vulnerability issue. per Alvin Lindstam. Fixes #4217
Initial patch by: Khushboo Vashi Modified by: Ashesh Vashi and Murtuza Zabuawala
This commit is contained in:
committed by
Akshay Joshi
parent
90a45557b9
commit
6f0eafb223
@@ -57,13 +57,12 @@ class ExecuteQuery {
|
||||
if (sqlStatement.length <= 0) return;
|
||||
|
||||
const self = this;
|
||||
let service = axios.create({});
|
||||
self.explainPlan = explainPlan;
|
||||
|
||||
const sqlStatementWithAnalyze = ExecuteQuery.prepareAnalyzeSql(sqlStatement, explainPlan);
|
||||
|
||||
self.initializeExecutionOnSqlEditor(sqlStatementWithAnalyze);
|
||||
service.post(
|
||||
axios.post(
|
||||
this.generateURLReconnectionFlag(connect),
|
||||
JSON.stringify(sqlStatementWithAnalyze),
|
||||
{headers: {'Content-Type': 'application/json'}})
|
||||
@@ -113,8 +112,7 @@ class ExecuteQuery {
|
||||
|
||||
poll() {
|
||||
const self = this;
|
||||
let service = axios.create({});
|
||||
service.get(
|
||||
axios.get(
|
||||
url_for('sqleditor.poll', {
|
||||
'trans_id': self.sqlServerObject.transId,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user