The following changes were made by the replace_file_content tool to: /root/MayaXSenderbot/bridge.py. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -127,7 +127,7 @@ def normalize_firebase_url(raw: str) -> str: - url = raw.strip() + url = str(raw or "").strip() url = re.sub(r"^https?://", "", url) url = url.split("?")[0].split("#")[0] url = url.split("/")[0] @@ -134,4 +134,12 @@ - return f"https://{url}" if url else "" + if not url: + return "" + if " " in url or "\n" in url or not re.match(r"^[a-zA-Z0-9.\-]+$", url): + return "" + if "firebasestorage.app" in url.lower(): + return "" + if "." not in url: + return "" + return f"https://{url}" def parse_int(value: Any, default: int = 0) -> int: [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.