Skip to content

Commit 463e090

Browse files
committed
Update Java version to 21 in GitHub Actions workflow
1 parent e82fec2 commit 463e090

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
platform: [ ubuntu-latest ]
16-
java-version: [ 8 ]
16+
java-version: [ 21 ]
1717

1818
runs-on: ${{ matrix.platform }}
1919
env:

omod/src/main/java/org/springframework/web/servlet/mvc/AbstractWizardFormController.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
import org.springframework.web.servlet.ModelAndView;
4343
import org.springframework.web.util.WebUtils;
4444

45+
import static org.springframework.web.util.WebUtils.SUBMIT_IMAGE_SUFFIXES;
46+
4547
/**
4648
* Form controller for typical wizard-style workflows.
4749
* <p>
@@ -659,6 +661,13 @@ protected int getTargetPage(HttpServletRequest request, int currentPage) {
659661
while (parameterNames.hasMoreElements()) {
660662
String param = parameterNames.nextElement();
661663
if (param.startsWith(PARAM_TARGET)) {
664+
for (String suffix : SUBMIT_IMAGE_SUFFIXES) {
665+
// Remove any image button suffixes (like .x or .y)
666+
if (param.endsWith(suffix)) {
667+
param = param.substring(0, param.length() - suffix.length());
668+
break;
669+
}
670+
}
662671
String pageStr = param.substring(PARAM_TARGET.length());
663672
try {
664673
return Integer.parseInt(pageStr);

0 commit comments

Comments
 (0)