mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	Address some CodeQL security concerns (#35572)
Although there is no real security problem
This commit is contained in:
		| @@ -14,4 +14,7 @@ export function linkLabelAndInput(label: Element, input: Element) { | ||||
|   } | ||||
| } | ||||
|  | ||||
| export const fomanticQuery = $; | ||||
| export function fomanticQuery(s: string | Element | NodeListOf<Element>): ReturnType<typeof $> { | ||||
|   // intentionally make it only work for query selector, it isn't used for creating HTML elements (for safety) | ||||
|   return typeof s === 'string' ? $(document).find(s) : $(s); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user