File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,6 @@ def extract_strings_from_user_input_cached(obj, source):
19
19
return res
20
20
21
21
22
- def reset_userinput_cache_for_given_source (source ):
23
- """Resets cache for the given source"""
24
- context = get_current_context ()
25
- if context .parsed_userinput and context .parsed_userinput .get (source ):
26
- context .parsed_userinput [source ] = None # Empty cache
27
-
28
-
29
22
def extract_strings_from_user_input (obj , path_to_payload = None ):
30
23
"""
31
24
Extracts strings from an object (user input)
Original file line number Diff line number Diff line change 5
5
import copy
6
6
import importhook
7
7
from aikido_firewall .helpers .logging import logger
8
- from aikido_firewall .helpers .extract_strings_from_user_input import (
9
- reset_userinput_cache_for_given_source ,
10
- )
11
8
from aikido_firewall .context import get_current_context
12
9
13
10
@@ -24,8 +21,6 @@ def process_xml(user_input, root_element):
24
21
extracted_xml_attrs [k ] = set ()
25
22
extracted_xml_attrs [k ].add (v )
26
23
extracted_xml_attrs .update (set (el .items ()))
27
-
28
- reset_userinput_cache_for_given_source ("xml" )
29
24
context .xml .append (extracted_xml_attrs )
30
25
context .set_as_current_context ()
31
26
You can’t perform that action at this time.
0 commit comments