diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2022-01-16 19:19:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-16 11:19:26 +0000 |
commit | 4d0a72a2710fd3381574485980f056ac644a10d7 (patch) | |
tree | f22868107e8e7dff2ab638ef366477d4efdc5fe3 /web_src/js/features/repo-branch.js | |
parent | 72b36816481a6af1cf3fc1bc4e27b96b8a2779ef (diff) | |
download | gitea-4d0a72a2710fd3381574485980f056ac644a10d7.tar.gz gitea-4d0a72a2710fd3381574485980f056ac644a10d7.zip |
Revert "Prevent possible XSS when using jQuery (#18289)" (#18293)
This reverts commit 661d3d28e97bb49bef075c0314edad5879148aaa.
Diffstat (limited to 'web_src/js/features/repo-branch.js')
-rw-r--r-- | web_src/js/features/repo-branch.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/repo-branch.js b/web_src/js/features/repo-branch.js index 1dddbf7276..4402411bfd 100644 --- a/web_src/js/features/repo-branch.js +++ b/web_src/js/features/repo-branch.js @@ -2,6 +2,6 @@ export function initRepoBranchButton() { $('.show-create-branch-modal.button').on('click', function () { $('#create-branch-form')[0].action = $('#create-branch-form').data('base-action') + $(this).data('branch-from-urlcomponent'); $('#modal-create-branch-from-span').text($(this).data('branch-from')); - $.find($(this).data('modal')).modal('show'); + $($(this).data('modal')).modal('show'); }); } |