This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new a066cc5864 Apply standard formatting
a066cc5864 is described below
commit a066cc586446bacbc4a8dd6f9925315e835e140c
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jan 7 17:20:24 2026 +0000
Apply standard formatting
---
java/org/apache/catalina/filters/CsrfPreventionFilter.java | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/java/org/apache/catalina/filters/CsrfPreventionFilter.java
b/java/org/apache/catalina/filters/CsrfPreventionFilter.java
index 41bd83a8f2..f8fcad1a54 100644
--- a/java/org/apache/catalina/filters/CsrfPreventionFilter.java
+++ b/java/org/apache/catalina/filters/CsrfPreventionFilter.java
@@ -579,17 +579,13 @@ public class CsrfPreventionFilter extends
CsrfPreventionFilterBase {
}
/**
- * Removes zero or more query parameters from a URL.
- *
- * All instances of the query parameter and any associated values will
be
- * removed.
- *
- * @param url The URL whose query parameters should be removed.
+ * Removes zero or more query parameters from a URL. All instances of
the query parameter and any associated
+ * values will be removed.
*
+ * @param url The URL whose query parameters should be
removed.
* @param parameterName The name of the parameter to remove.
*
- * @return The URL without any instances of the query parameter
- * <code>parameterName</code> present.
+ * @return The URL without any instances of the query parameter
<code>parameterName</code> present.
*/
public static String removeQueryParameters(String url, String
parameterName) {
if (null != parameterName) {
@@ -635,7 +631,7 @@ public class CsrfPreventionFilter extends
CsrfPreventionFilterBase {
if (-1 < pos) {
paramName = url.substring(start, pos);
} else {
- paramName = url.substring(start);
+ paramName = url.substring(start);
// No value
}
if (paramName.equals(parameterName)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]