Require the dress page to identify the requested account and every returned item before exposing the result. Reject malformed nested media metadata instead of silently degrading it. Bound the HTML request to a 10-second redirect-chain deadline and a 2 MiB response body. Secure redirects by closing previous connections, stripping cross-origin credentials, rejecting cross-origin write forwarding, and surfacing malformed locations. Replace the captured page with a minimal sanitized fixture and add protocol plus OneBot Action regression coverage for resource limits, redirect safety, response ownership, and structured failures.
67 lines
2.0 KiB
HTML
67 lines
2.0 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<body>
|
|
<!--
|
|
Sanitized from a real QQ friend-dress SSR response. Only fields consumed
|
|
by SnowLuma remain; account identifiers, timestamps, tracking markup,
|
|
recommendation data, and embedded assets have been removed.
|
|
-->
|
|
<script>
|
|
window.__INITIAL_ASYNCDATA__={
|
|
"isHost": false,
|
|
"targetUin": "10000",
|
|
"isSvip": true,
|
|
"avatarImage": "https://q.qlogo.cn/g?b=qq&nk=10000&s=100",
|
|
"rawUsingList": [
|
|
{
|
|
"appId": 2,
|
|
"itemId": 2141485,
|
|
"name": "在说什么呢",
|
|
"image": "https://tianquan.gtimg.cn/bubble/item/2141485/newPreview1.png",
|
|
"extrainfo": { "price": 300 }
|
|
},
|
|
{
|
|
"appId": 15,
|
|
"itemId": 201534,
|
|
"name": "二次元少女",
|
|
"image": "https://tianquan.gtimg.cn/card/original/201534/templateThumb.jpg",
|
|
"extrainfo": {}
|
|
},
|
|
{
|
|
"appId": 22,
|
|
"itemId": 2000,
|
|
"name": "花瓣",
|
|
"image": "https://tianquan.gtimg.cn/colorScreen/item/2000/listImg.png",
|
|
"extrainfo": {}
|
|
},
|
|
{
|
|
"appId": 17,
|
|
"itemId": 2730,
|
|
"name": "岁月成碑",
|
|
"image": "https://tianquan.gtimg.cn/funcall/funCall/2730/web_image.jpg",
|
|
"extrainfo": {}
|
|
},
|
|
{
|
|
"appId": 4,
|
|
"name": "默认挂件",
|
|
"image": "https://tianquan.gtimg.cn/faceAddon/item/0/new1.png",
|
|
"extrainfo": {}
|
|
},
|
|
{
|
|
"appId": 23,
|
|
"name": "默认头像",
|
|
"image": "https://q1.qlogo.cn/qhis/FixtureAvatarHashRedacted/",
|
|
"extrainfo": {}
|
|
},
|
|
{
|
|
"appId": 47,
|
|
"name": "拍了拍",
|
|
"image": "https://tianquan.gtimg.cn/nudgeeffect/item/0/preview.png",
|
|
"extrainfo": {}
|
|
}
|
|
]
|
|
};(function(){})();
|
|
</script>
|
|
</body>
|
|
</html>
|