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
{ {
...@@ -292,6 +293,15 @@ public class WikiEditSettingDialog extends WikiDialog ...@@ -292,6 +293,15 @@ public class WikiEditSettingDialog extends WikiDialog
} }
} }
else if ( sRedirectURL == null || sRedirectURL.length() == 0 ) 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 // URL invalid
// show error // show error
...@@ -303,6 +313,7 @@ public class WikiEditSettingDialog extends WikiDialog ...@@ -303,6 +313,7 @@ public class WikiEditSettingDialog extends WikiDialog
false ); false );
} }
} }
}
else else
{ {
// URL field empty // 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