mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 00:02:43 +02:00
Address some CodeQL security concerns (#35572)
Although there is no real security problem
This commit is contained in:
1 parent
c4532101a4
commit
71360a94cb
35 files changed
+118
-78
No files matched your search
+6
-1
@@ -35,7 +35,12 @@ export function isDarkTheme(): boolean {
|
||||
|
||||
/** strip <tags> from a string */
|
||||
export function stripTags(text: string): string {
|
||||
return text.replace(/<[^>]*>?/g, '');
|
||||
let prev = '';
|
||||
while (prev !== text) {
|
||||
prev = text;
|
||||
text = text.replace(/<[^>]*>?/g, '');
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
export function parseIssueHref(href: string): IssuePathInfo {
|
||||
|
||||
Reference in new issue
Block a user