Skip to content

Commit 36cb4b6

Browse files
authored
fix ident
1 parent 4d700f0 commit 36cb4b6

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

builder/frameworks/espidf.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -233,19 +233,19 @@ def load_custom_sdkconfig_file():
233233
# Handle HTTP/HTTPS URLs
234234
if "http" in file_entry and "://" in file_entry:
235235
url = file_entry.split(" ")[0]
236-
# Path Traversal protection
237-
if contains_path_traversal(url):
238-
print(f"Path Traversal detected: {url} check your URL path")
239-
else:
240-
try:
241-
response = requests.get(file_entry.split(" ")[0])
242-
if response.ok:
243-
return response.content.decode('utf-8')
244-
except requests.RequestException as e:
245-
print(f"Error downloading {file_entry}: {e}")
246-
except UnicodeDecodeError as e:
247-
print(f"Error decoding response from {file_entry}: {e}")
248-
return ""
236+
# Path Traversal protection
237+
if contains_path_traversal(url):
238+
print(f"Path Traversal detected: {url} check your URL path")
239+
else:
240+
try:
241+
response = requests.get(file_entry.split(" ")[0])
242+
if response.ok:
243+
return response.content.decode('utf-8')
244+
except requests.RequestException as e:
245+
print(f"Error downloading {file_entry}: {e}")
246+
except UnicodeDecodeError as e:
247+
print(f"Error decoding response from {file_entry}: {e}")
248+
return ""
249249

250250
# Handle local files
251251
if "file://" in file_entry:

0 commit comments

Comments
 (0)