subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
subprocess.run(["open", iplay_uri], check=True) elif system == "Windows": # Fixed: Quote URI to prevent '&' being interpreted as command separator by shell=True subprocess.run(f'start "" "{iplay_uri}"', shell=True, check=True) else: # Linux subprocess.run(["xdg-open", iplay_uri], check=True) print(f"Successfully sent URL to iPlay: {url}")- Confidence
- 95% confidence
- Finding
- subprocess.run(f'start "" "{iplay_uri}"', shell=True, check=True)
