Skip to content

Added fallback for IDN URL validation - #1307

Open
girishpanchal30 wants to merge 3 commits into
developmentfrom
bugfix/1302
Open

Added fallback for IDN URL validation#1307
girishpanchal30 wants to merge 3 commits into
developmentfrom
bugfix/1302

Conversation

@girishpanchal30

Copy link
Copy Markdown
Contributor

Summary

Added a fallback for the idn_to_ascii() function in case the intl extension is not available. This ensures that the plugin can handle internationalized domain names (IDNs) correctly, even on servers without the intl extension.

Check before Pull Request is ready:

Closes #1302

@pirate-bot pirate-bot added the pr-checklist-complete The Pull Request checklist is complete. (automatic label) label Aug 5, 2026
@pirate-bot

pirate-bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Plugin build for 827dd82 is ready 🛎️!

Note

You can preview the changes in the Playground

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds WordPress Requests-based IDN conversion when PHP’s intl extension is unavailable.

Changes:

  • Adds guarded idn_to_ascii() usage and punycode fallback.
  • Expands IDN URL and featured-image tests.
  • One featured-image regression assertion is currently vacuous.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
includes/admin/feedzy-rss-feeds-import.php Adds resilient IDN host conversion.
tests/test-image-import.php Adds IDN conversion and image-import coverage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test-image-import.php Outdated

@selul selul left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One new phpcs:ignore and a whitespace slip.

Comment thread includes/admin/feedzy-rss-feeds-import.php Outdated
Comment thread tests/test-image-import.php Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-checklist-complete The Pull Request checklist is complete. (automatic label)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants