inpageedit / inpageedit-v2

A powerful frontend JavaScript Plugin for MediaWiki written with jQuery
https://www.ipe.wiki
GNU General Public License v3.0
47 stars 13 forks source link

[BUG] 解析外链时出现Uncaught error #223

Closed AlPha5130 closed 1 year ago

AlPha5130 commented 1 year ago

简述此故障/Describe the bug

在某些特定条件下,extiw的外链仍然会被IPE错误当作内链解析,导致其不工作。

如何重现此故障/To Reproduce

  1. 在用户JS里加载最新的IPE
  2. 访问 https://minecraft.fandom.com/zh/wiki/Minecraft_Wiki
  3. IPE并未加载

本应出现的情况/Expected behavior

IPE正常加载,并在右下角出现快捷按钮。

截图/Screenshots

Uncaught (in promise) URIError: malformed URI sequence
    articleLink articleLink.js:45
    jQuery 2
    articleLink articleLink.js:21
    exports init.js:61
    async* index.js:27
    <anonymous> index.js:10
    <anonymous> InPageEdit.min.js:1

相关信息/Your info

额外说明/Additional context

导致报错的是一个外链(“Minecraft(《我的世界》)是一款3D沙盒电子游戏”里的“电子游戏”),带有extiw的class,但是IPE由于某些原因仍将其当作内链解析。

AlPha5130 commented 1 year ago

事实上本问题应当已在 #220 里修复,但是没有发布新版本应用修复。

dragon-fish commented 1 year ago

Closed via v14.3.4