File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed 
app/code/core/Mage/Core/Helper Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -264,12 +264,8 @@ protected function getConfigKey(string $configKey): array
264264
265265        unset($ configKeyParts0 ]);
266266
267+         /** @var string $scope */ 
267268        $ scopearray_shift ($ configKeyParts
268-         if  (!is_string ($ scope
269-             throw  new  Mage_Core_Exception (
270-                 'Invalid configuration key:  '  . $ configKey'. Scope is not a string. ' ,
271-             );
272-         }
273269
274270        return  [$ configKeyParts$ scope
275271    }
@@ -288,14 +284,7 @@ protected function isConfigKeyValid(string $configKey): bool
288284            . self ::ENV_KEY_SEPARATOR  . $ sectionGroupFieldRegexp'/ ' ;
289285        // /OPENMAGE_CONFIG__(WEBSITES__[A-Z-_]+|DEFAULT|STORES__[A-Z-_]+)__([A-Z-_]*)__([A-Z-_]*)__([A-Z-_]*)/ 
290286
291-         $ validatedConfigKeypreg_match ($ regexp$ configKey
292-         if  ($ validatedConfigKeyfalse ) {
293-             throw  new  Mage_Core_Exception (
294-                 'Invalid configuration key:  '  . $ configKey'. Regex match failed. ' ,
295-             );
296-         }
297- 
298-         return  (bool ) $ validatedConfigKey
287+         return  (bool ) preg_match ($ regexp$ configKey
299288    }
300289
301290    /** 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments