From 961f755c4f827188f9238e49989233fdec475f44 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 29 Aug 2005 12:06:24 +0000 Subject: [PATCH] * Only interpret last path element as action if it is not terminated by a "/". This helps us to disambiguify URLs: /foo/ will never be interpreted as action, while /foo will be. --- src/helma/framework/core/RequestEvaluator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index dac87b0b..fedbfabe 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -231,7 +231,7 @@ public final class RequestEvaluator implements Runnable { // if we're at the last element of the path, // try to interpret it as action name. - if (i == (ntokens - 1)) { + if (i == (ntokens - 1) && !req.getPath().endsWith("/")) { action = getAction(currentElement, pathItems[i], req.getMethod()); }