mirror of
https://github.com/go-gitea/gitea
synced 2025-11-03 04:48:25 +00:00
Address some CodeQL security concerns (#35572)
Although there is no real security problem
This commit is contained in:
@@ -1144,8 +1144,8 @@ $.api.settings = {
|
||||
},
|
||||
|
||||
regExp : {
|
||||
required : /\{\$*[A-z0-9]+\}/g,
|
||||
optional : /\{\/\$*[A-z0-9]+\}/g,
|
||||
required : /\{\$*[_A-Za-z0-9]+\}/g, // GITEA-PATCH: use "_A-Za-z" instead of "A-z" for variable name matching
|
||||
optional : /\{\/\$*[_A-Za-z0-9]+\}/g, // GITEA-PATCH: use "_A-Za-z" instead of "A-z" for variable name matching
|
||||
},
|
||||
|
||||
className: {
|
||||
|
||||
@@ -66,7 +66,7 @@ $.fn.dropdown = function(parameters) {
|
||||
moduleNamespace = 'module-' + namespace,
|
||||
|
||||
$module = $(this),
|
||||
$context = $(settings.context),
|
||||
$context = (typeof settings.context === 'string') ? $(document).find(settings.context) : $(settings.context), // GITEA-PATCH: use "jQuery.find(selector)" instead of "jQuery(selector)"
|
||||
$text = $module.find(selector.text),
|
||||
$search = $module.find(selector.search),
|
||||
$sizer = $module.find(selector.sizer),
|
||||
|
||||
@@ -64,7 +64,7 @@ $.fn.modal = function(parameters) {
|
||||
moduleNamespace = 'module-' + namespace,
|
||||
|
||||
$module = $(this),
|
||||
$context = $(settings.context),
|
||||
$context = (typeof settings.context === 'string') ? $(document).find(settings.context) : $(settings.context), // GITEA-PATCH: use "jQuery.find(selector)" instead of "jQuery(selector)"
|
||||
$close = $module.find(selector.close),
|
||||
|
||||
$allModals,
|
||||
|
||||
Reference in New Issue
Block a user