桌面端医师签署身份:审核人填写证件姓名,修复内嵌核身页误拦截
- 未绑定签署账号的审核人(如 admin)显示「证件姓名」输入,与网页端一致, 随手机号一并提交 signer_name;认证中可「修改证件姓名」重新发起 - 内嵌 e签宝 页面按编码后的 URL 校验白名单,含 %20 的官方资源不再被误拦 - 手动「检查认证状态」仍在认证中时,提示在认证页点击「查询认证结果」 Co-Authored-By: Claude Opus 5 (1M context) <[EMAIL]>
This commit is contained in:
co-authored by
Claude Opus 5 (1M context)
parent
301c04ca90
commit
e4d788ed32
@@ -33,6 +33,13 @@ def test_offsite_and_app_switch_navigation_is_rejected(url: str) -> None:
|
||||
assert not authentication_navigation_allowed(url)
|
||||
|
||||
|
||||
def test_encoded_space_on_official_host_is_not_mistaken_for_control_character() -> None:
|
||||
url = QUrl("https://asset.esign.cn/img/icon%20_world_.svg?t=1%202")
|
||||
assert not authentication_navigation_allowed(url.toString())
|
||||
assert authentication_navigation_allowed(esign_webview._policy_url(url))
|
||||
assert not authentication_navigation_allowed(esign_webview._policy_url(QUrl("https://evil.test/a%20b")))
|
||||
|
||||
|
||||
@pytest.mark.skipif(not esign_webview.WEBENGINE_AVAILABLE, reason="QtWebEngine unavailable")
|
||||
def test_page_blocks_popups_frames_custom_schemes_and_uploads() -> None:
|
||||
blocked: list[str] = []
|
||||
|
||||
Reference in New Issue
Block a user