SOLR-203 -- but that normalizes '/' to '' and then matches the default handler

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@535580 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-05-06 05:30:09 +00:00
parent d75a031c5e
commit 0b34c977f8
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ final class RequestHandlers {
*/
private static String normalize( String p )
{
if( p != null && p.endsWith( "/" ) )
if( p != null && p.endsWith( "/" ) && p.length() > 1 )
return p.substring( 0, p.length()-1 );
return p;