Skip to content

refactor: improve URL validation and file loading in iOS#387

Merged
mfazekas merged 1 commit intorive-app:mainfrom
mfazekas:mfazekas/pr344-improvements
Nov 5, 2025
Merged

refactor: improve URL validation and file loading in iOS#387
mfazekas merged 1 commit intorive-app:mainfrom
mfazekas:mfazekas/pr344-improvements

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

@mfazekas mfazekas commented Nov 5, 2025

Summary

  • Replace UIApplication.shared.canOpenURL with explicit http/https scheme check to avoid accepting invalid URL schemes like tel: or facetime:
  • Reuse loadFileUrlAsset in loadResourceAsset to avoid code duplication and ensure consistent file loading behavior

Context

Follow-up improvements to PR #344 based on code review suggestions.

- Replace UIApplication.shared.canOpenURL with explicit http/https scheme check
  to avoid accepting invalid URL schemes like tel: or facetime:
- Reuse loadFileUrlAsset in loadResourceAsset to avoid code duplication
  and ensure consistent file loading behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@mfazekas mfazekas marked this pull request as ready for review November 5, 2025 10:29
Copy link
Copy Markdown
Contributor

@HayesGordon HayesGordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants