Skip to content

Commit 3710248

Browse files
authored
Merge pull request #1562 from ychin/fix-whatsnew-url-comparison
Fix What's New URL checking logic to compare port correctly
2 parents 08e946f + af567e9 commit 3710248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/MacVim/MMWhatsNewController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ - (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigati
171171

172172
if ([requestURL.scheme isEqual:_whatsNewURL.scheme] &&
173173
[requestURL.host isEqual:_whatsNewURL.host] &&
174-
[requestURL.port isEqual:_whatsNewURL.port] &&
174+
requestURL.port.integerValue == _whatsNewURL.port.integerValue &&
175175
[requestURL.path isEqual:_whatsNewURL.path] &&
176176
[requestURL.query isEqual:_whatsNewURL.query])
177177
{

0 commit comments

Comments
 (0)