summaryrefslogtreecommitdiff
path: root/sfx2/source/inet/inettbc.cxx
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2001-06-11 08:14:35 +0000
committerPeter Burow <pb@openoffice.org>2001-06-11 08:14:35 +0000
commit1da20714921269b3f909b49f4eee6a8ace79cee9 (patch)
tree25589cf38db9357eae2c3efef3346bcf7a473f0b /sfx2/source/inet/inettbc.cxx
parentc64b5e180fd0aec7f85a2ace23c48e7632f13b0b (diff)
fix: #86636# handle wildcards improved
Diffstat (limited to 'sfx2/source/inet/inettbc.cxx')
-rw-r--r--sfx2/source/inet/inettbc.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 5b2b156aa9e4..7e291020ba2f 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: inettbc.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: mba $ $Date: 2001-06-08 08:52:09 $
+ * last change: $Author: pb $ $Date: 2001-06-11 09:14:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1009,8 +1009,16 @@ String SfxURLBox::GetURL()
INetURLObject aObj( aText );
if( aText.Search( '*' ) != STRING_NOTFOUND || aText.Search( '?' ) != STRING_NOTFOUND )
+ {
// no autocompletion for wildcards
- return aObj.GetMainURL();
+ INetURLObject aTempObj;
+ if ( eSmartProtocol != INET_PROT_NOT_VALID )
+ aTempObj.SetSmartProtocol( eSmartProtocol );
+ if ( aTempObj.SetSmartURL( aText ) )
+ return aTempObj.GetMainURL();
+ else
+ return aText;
+ }
if ( aObj.GetProtocol() == INET_PROT_NOT_VALID )
{