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 @@
*
* $RCSfile: WikiEditSettingDialog.java,v $
*
* $Revision: 1.25 $
* $Revision: 1.26 $
*
* This file is part of OpenOffice.org.
*
......@@ -213,6 +213,7 @@ public class WikiEditSettingDialog extends WikiDialog
HostConfiguration aHostConfig = new HostConfiguration();
boolean bInitHost = true;
boolean bAllowIndex = true;
do
{
......@@ -292,6 +293,15 @@ public class WikiEditSettingDialog extends WikiDialog
}
}
else if ( sRedirectURL == null || sRedirectURL.length() == 0 )
{
if ( sURL.length() > 0 && !sURL.endsWith( "index.php" ) && bAllowIndex )
{
// the used MainURL is not alwais directly accessible
// add the suffix as workaround, but only once
sRedirectURL = sURL + "/index.php";
bAllowIndex = false;
}
else
{
// URL invalid
// show error
......@@ -303,6 +313,7 @@ public class WikiEditSettingDialog extends WikiDialog
false );
}
}
}
else
{
// URL field empty
......
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