Skip to content

Commit a286d46

Browse files
committed
Minor improvment
1 parent 671b318 commit a286d46

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

rpi/run.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,11 @@ def do_GET(self):
227227
status = "OK"
228228
case 'show':
229229
url = qs.get("url", [None])[0]
230-
handle_wwwLoad(url)
231-
status = "OK"
230+
if "@" in url:
231+
status = "Posible URL-Spoofing detected! Please remove all @ characters from your file names."
232+
else:
233+
handle_wwwLoad(url)
234+
status = "OK"
232235

233236
self.send_response(200)
234237
self.send_header("Content-type", "text/html")

0 commit comments

Comments
 (0)