mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-18 17:04:53 -05: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
@@ -22,12 +22,14 @@ import loading_icon from 'acitree/image/load-root.gif';
|
||||
define([
|
||||
'jquery', 'underscore', 'underscore.string', 'pgadmin.alertifyjs',
|
||||
'sources/gettext', 'sources/url_for', 'dropzone', 'sources/pgadmin',
|
||||
'tablesorter',
|
||||
], function($, _, S, Alertify, gettext, url_for, Dropzone, pgAdmin) {
|
||||
'sources/csrf', 'tablesorter',
|
||||
], function($, _, S, Alertify, gettext, url_for, Dropzone, pgAdmin, csrfToken) {
|
||||
|
||||
/*---------------------------------------------------------
|
||||
Define functions used for various operations
|
||||
---------------------------------------------------------*/
|
||||
// Set the CSRF Token
|
||||
csrfToken.setPGCSRFToken(pgAdmin.csrf_token_header, pgAdmin.csrf_token);
|
||||
|
||||
// Return file extension
|
||||
var getFileExtension = function(name) {
|
||||
|
||||
Reference in New Issue
Block a user