Commit 037ac940 authored by aspilicious's avatar aspilicious
Browse files

trim trailing slashes in pathListener

parent cc36b421
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment