mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
Sandbox Process Creation
This commit is contained in:
@@ -5,6 +5,7 @@ import sys
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import Dict, Any, Optional
|
||||
from security import safe_command
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
@@ -166,8 +167,7 @@ class FFmpeg:
|
||||
"""Get FFmpeg version"""
|
||||
try:
|
||||
import subprocess
|
||||
result = subprocess.run(
|
||||
[str(self.ffmpeg_path), "-version"],
|
||||
result = safe_command.run(subprocess.run, [str(self.ffmpeg_path), "-version"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
timeout=5
|
||||
|
||||
Reference in New Issue
Block a user