提交 d104c2c4 编写于 作者: A Alex Dima

Fixes #79475: Protect against bad callers of asCSSUrl

上级 9c39bf2d
......@@ -1202,5 +1202,8 @@ export function asDomUri(uri: URI): URI {
* returns url('...')
*/
export function asCSSUrl(uri: URI): string {
if (!uri) {
return `url('')`;
}
return `url('${asDomUri(uri).toString(true).replace(/'/g, '%27')}')`;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册