Skip to content
Snippets Groups Projects
Commit 037ac940 authored by Bram Goffings's avatar Bram Goffings
Browse files

trim trailing slashes in pathListener

parent cc36b421
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -16,7 +16,7 @@
abstract class PathListenerBase {
public function extractPath(Request $request) {
return $request->attributes->get('system_path') ?: ltrim($request->getPathInfo(), '/');
return $request->attributes->get('system_path') ?: trim($request->getPathInfo(), '/');
}
public function setPath(Request $request, $path) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment