incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: svn commit: r713495 - in /incubator/jspwiki/trunk: ChangeLog src/com/ecyrd/jspwiki/Release.java src/com/ecyrd/jspwiki/WikiEngine.java
Date Wed, 12 Nov 2008 20:33:16 GMT

Isn't this a problem if someones base path ends with a non-slash  
thing?  For example, "http://myorg/myredirectservlet?redirurl="

Better to fix in the installer?

/Janne


> --- incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/WikiEngine.java  
> (original)
> +++ incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/WikiEngine.java  
> Wed Nov 12 12:24:43 2008
> @@ -498,7 +498,11 @@
>                                                           
> m_saveUserInfo );
>
>          m_useUTF8        = "UTF-8".equals 
> ( TextUtil.getStringProperty( props, PROP_ENCODING, "ISO-8859-1" ) );
> -        m_baseURL        = TextUtil.getStringProperty( props,  
> PROP_BASEURL, "" );
> +        m_baseURL = TextUtil.getStringProperty( props,  
> PROP_BASEURL, "" );
> +        if( !m_baseURL.endsWith( "/" ) )
> +        {
> +            m_baseURL = m_baseURL + "/";
> +        }
>
>
>          m_beautifyTitle  = TextUtil.getBooleanProperty( props,
>


Mime
View raw message