File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ VE.navigation.switch_menu = function(position){
387387VE . notifications . get_list = function ( ) {
388388/// TODO get notifications only once
389389 $ . ajax ( {
390- url : "/list/notifications/?ajax=1" ,
390+ url : "/list/notifications/?ajax=1&token=" + $ ( '#token' ) . attr ( 'token' ) ,
391391 dataType : "json"
392392 } ) . done ( function ( data ) {
393393 var acc = [ ] ;
Original file line number Diff line number Diff line change 55include ($ _SERVER ['DOCUMENT_ROOT ' ]."/inc/main.php " );
66
77
8- if ($ _REQUEST ['ajax ' ] == 1 ){
8+ if ($ _REQUEST ['ajax ' ] == 1 && $ _REQUEST [ ' token ' ] == $ _SESSION [ ' token ' ] ){
99 // Data
1010 exec (HESTIA_CMD ."v-list-user-notifications $ user json " , $ output , $ return_var );
1111 $ data = json_decode (implode ('' , $ output ), true );
You can’t perform that action at this time.
0 commit comments