diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index bf0390dc3f680..4e3da6cab440e 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -33,6 +33,7 @@ overrides:
- files: ["web_src/**/*"]
globals:
__webpack_public_path__: true
+ htmx: true
process: false # https://github.com/webpack/webpack/issues/15833
- files: ["web_src/**/*", "docs/**/*"]
env:
diff --git a/package-lock.json b/package-lock.json
index 4212f0d774cc2..51861ede2fe6e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -29,7 +29,7 @@
"esbuild-loader": "4.2.0",
"escape-goat": "4.0.0",
"fast-glob": "3.3.2",
- "htmx.org": "1.9.12",
+ "htmx.org": "2.0.0",
"idiomorph": "0.3.0",
"jquery": "3.7.1",
"katex": "0.16.10",
@@ -6891,9 +6891,9 @@
}
},
"node_modules/htmx.org": {
- "version": "1.9.12",
- "resolved": "https://registry.npmjs.org/htmx.org/-/htmx.org-1.9.12.tgz",
- "integrity": "sha512-VZAohXyF7xPGS52IM8d1T1283y+X4D+Owf3qY1NZ9RuBypyu9l8cGsxUMAG5fEAb/DhT7rDoJ9Hpu5/HxFD3cw=="
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/htmx.org/-/htmx.org-2.0.0.tgz",
+ "integrity": "sha512-N0r1VjrqeCpig0mTi2/sooDZBeQlp1RBohnWQ/ufqc7ICaI0yjs04fNGhawm6+/HWhJFlcXn8MqOjWI9QGG2lQ=="
},
"node_modules/human-signals": {
"version": "5.0.0",
diff --git a/package.json b/package.json
index fa2145f1faa1e..2efebb8df8f15 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,7 @@
"esbuild-loader": "4.2.0",
"escape-goat": "4.0.0",
"fast-glob": "3.3.2",
- "htmx.org": "1.9.12",
+ "htmx.org": "2.0.0",
"idiomorph": "0.3.0",
"jquery": "3.7.1",
"katex": "0.16.10",
diff --git a/services/externalaccount/user.go b/services/externalaccount/user.go
index e2de41da188e5..3cfd8c81f9fc7 100644
--- a/services/externalaccount/user.go
+++ b/services/externalaccount/user.go
@@ -5,6 +5,7 @@ package externalaccount
import (
"context"
+ "strconv"
"strings"
"code.gitea.io/gitea/models/auth"
@@ -82,6 +83,11 @@ func UpdateExternalUser(ctx context.Context, user *user_model.User, gothUser got
// UpdateMigrationsByType updates all migrated repositories' posterid from gitServiceType to replace originalAuthorID to posterID
func UpdateMigrationsByType(ctx context.Context, tp structs.GitServiceType, externalUserID string, userID int64) error {
+ // Skip update if externalUserID is not a valid numeric ID or exceeds int64
+ if _, err := strconv.ParseInt(externalUserID, 10, 64); err != nil {
+ return nil
+ }
+
if err := issues_model.UpdateIssuesMigrationsByType(ctx, tp, externalUserID, userID); err != nil {
return err
}
diff --git a/templates/repo/blame.tmpl b/templates/repo/blame.tmpl
index 3e7cd92066264..62d1bbf2ba7c4 100644
--- a/templates/repo/blame.tmpl
+++ b/templates/repo/blame.tmpl
@@ -2,7 +2,7 @@
{{$revsFileLink := URLJoin .RepoLink "src" .BranchNameSubURL "/.git-blame-ignore-revs"}}
{{if .UsesIgnoreRevs}}
-
{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink (print $revsFileLink "?bypass-blame-ignore=true")}}
+
{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink "?bypass-blame-ignore=true"}}
{{else}}
diff --git a/templates/repo/diff/blob_excerpt.tmpl b/templates/repo/diff/blob_excerpt.tmpl
index 2874ac6a55c61..cc2237029bd68 100644
--- a/templates/repo/diff/blob_excerpt.tmpl
+++ b/templates/repo/diff/blob_excerpt.tmpl
@@ -53,17 +53,17 @@
{{if or (eq $expandDirection 3) (eq $expandDirection 5)}}
- |