Kaydet (Commit) 7a456c00 authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS wikiext03 (1.25.4); FILE MERGED

2008/05/02 11:58:16 mav 1.25.4.1: #i88649# not all servers allow access the ShortURL directly
üst f9fef426
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* $RCSfile: WikiEditSettingDialog.java,v $ * $RCSfile: WikiEditSettingDialog.java,v $
* *
* $Revision: 1.25 $ * $Revision: 1.26 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -213,6 +213,7 @@ public class WikiEditSettingDialog extends WikiDialog ...@@ -213,6 +213,7 @@ public class WikiEditSettingDialog extends WikiDialog
HostConfiguration aHostConfig = new HostConfiguration(); HostConfiguration aHostConfig = new HostConfiguration();
boolean bInitHost = true; boolean bInitHost = true;
boolean bAllowIndex = true;
do do
{ {
...@@ -293,14 +294,24 @@ public class WikiEditSettingDialog extends WikiDialog ...@@ -293,14 +294,24 @@ public class WikiEditSettingDialog extends WikiDialog
} }
else if ( sRedirectURL == null || sRedirectURL.length() == 0 ) else if ( sRedirectURL == null || sRedirectURL.length() == 0 )
{ {
// URL invalid if ( sURL.length() > 0 && !sURL.endsWith( "index.php" ) && bAllowIndex )
// show error {
Helper.ShowError( m_xContext, // the used MainURL is not alwais directly accessible
m_xDialog, // add the suffix as workaround, but only once
Helper.DLG_MEDIAWIKI_TITLE, sRedirectURL = sURL + "/index.php";
Helper.INVALIDURL_ERROR, bAllowIndex = false;
null, }
false ); else
{
// URL invalid
// show error
Helper.ShowError( m_xContext,
m_xDialog,
Helper.DLG_MEDIAWIKI_TITLE,
Helper.INVALIDURL_ERROR,
null,
false );
}
} }
} }
else else
......
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