Kaydet (Commit) d756a159 authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS sb46 (1.8.100); FILE MERGED

2006/01/17 10:51:58 dbo 1.8.100.1: #i49437#
- assume no office running when user installation path does not exist
- reject to create folder when invalid url is given
Issue number:
Submitted by:
Reviewed by:
üst 83b22dd6
......@@ -4,9 +4,9 @@
*
* $RCSfile: dp_ucb.cxx,v $
*
* $Revision: 1.8 $
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2005-09-08 17:25:11 $
* last change: $Author: hr $ $Date: 2006-01-26 17:49:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -111,6 +111,14 @@ bool create_folder(
url = expandUnoRcUrl( url );
slash = url.lastIndexOf( '/' );
}
if (slash < 0) {
// invalid: has to be at least "auth:/..."
if (throw_exc)
throw ContentCreationException(
OUSTR("Cannot create folder (invalid path): ") + url,
Reference<XInterface>(), ContentCreationError_UNKNOWN );
return false;
}
::ucb::Content parentContent;
if (! create_folder(
&parentContent, url.copy( 0, slash ), xCmdEnv, throw_exc ))
......
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