File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed 
engine/Shopware/Plugins/Default/Backend/SwagUpdate/Controllers/Backend Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 2323 */ 
2424
2525use  Psr \Log \LoggerInterface ;
26+ use  Shopware \Components \CSRFWhitelistAware ;
2627use  Shopware \Components \Random ;
2728use  ShopwarePlugins \SwagUpdate \Components \Checks \EmotionTemplateCheck ;
2829use  ShopwarePlugins \SwagUpdate \Components \Checks \IonCubeLoaderCheck ;
4748 * @package   Shopware\Controllers\Backend\SwagUpdate 
4849 * @copyright Copyright (c) shopware AG (http://www.shopware.de) 
4950 */ 
50- class  Shopware_Controllers_Backend_SwagUpdate extends  Shopware_Controllers_Backend_ExtJs
51+ class  Shopware_Controllers_Backend_SwagUpdate extends  Shopware_Controllers_Backend_ExtJs  implements  CSRFWhitelistAware 
5152{
5253    /** 
5354     * Cache key for update response 
@@ -576,4 +577,16 @@ private function getUserLanguage(stdClass $user)
576577
577578        return  substr ($ locale , 0 , 2 );
578579    }
580+ 
581+     /** 
582+      * Returns a list with actions which should not be validated for CSRF protection 
583+      * 
584+      * @return string[] 
585+      */ 
586+     public  function  getWhitelistedCSRFActions ()
587+     {
588+         return  [
589+             'startUpdate ' 
590+         ];
591+     }
579592}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments