mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 14:18:43 +08:00
Prevent XSS by escaping user_set_url_params
This commit is contained in:
parent
8713db3d55
commit
2ecea9a7b0
@ -214,7 +214,7 @@ async function UIWindow(options) {
|
||||
data-sort_order ="${options.sort_order ?? 'asc'}"
|
||||
data-multiselectable = "${options.selectable_body}"
|
||||
data-update_window_url = "${options.update_window_url}"
|
||||
data-user_set_url_params = "${user_set_url_params}"
|
||||
data-user_set_url_params = "${html_encode(user_set_url_params)}"
|
||||
data-initial_zindex = "${zindex}"
|
||||
style=" z-index: ${zindex};
|
||||
${options.width !== undefined ? 'width: ' + html_encode(options.width) +'; ':''}
|
||||
|
Loading…
Reference in New Issue
Block a user