Skip to content

Commit

Permalink
handle Ace / punny code in macOS url handler too
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlebantongying authored Feb 8, 2025
1 parent c02cee6 commit e49fec7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macos/mac_url_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
void MacUrlHandler::processURL( const QUrl & url )
{
qDebug() << "External URL received: " << url;
emit wordReceived( QStringLiteral( "translateWord: " ) + url.host() );
emit wordReceived( QStringLiteral( "translateWord: " )
+ QUrl::fromAce( url.authority().toLatin1(), QUrl::IgnoreIDNWhitelist ) );
}

#endif

0 comments on commit e49fec7

Please sign in to comment.