public
Description: Midgard Components Framework 3rd generation
Homepage: http://www.midgard-project.org
Clone URL: git://github.com/bergie/midcom.git
Make folder creation work via WebDAV
bergie (author)
Fri Jun 27 02:03:40 -0700 2008
commit  ac34184fd942b989a33d6ea1d1ae1be635ace7e8
tree    00d51c8e815bd8572dfd4369c3412924b569f41d
parent  ab074ef338af4592bd3eb9ba9bd3ef970bcfc642
...
30
31
32
33
 
34
35
36
...
30
31
32
 
33
34
35
36
0
@@ -30,7 +30,7 @@ if (!defined('MIDCOM_TEST_RUN'))
0
  */
0
 if ( isset($_SERVER['REQUEST_URI'])
0
     && !preg_match('%\?|/$|midcom-.+-|/.+\..+$%', $_SERVER['REQUEST_URI'])
0
- && empty($_POST))
0
+ && $_SERVER['REQUEST_METHOD'] == 'GET')
0
 {
0
     header('HTTP/1.0 301 Moved Permanently');
0
     header("Location: {$_SERVER['REQUEST_URI']}/");
...
261
262
263
264
265
266
267
268
269
270
271
...
280
281
282
 
283
284
285
...
261
262
263
 
 
 
 
 
264
265
266
...
275
276
277
278
279
280
281
0
@@ -261,11 +261,6 @@ class midcom_core_helpers_webdav extends HTTP_WebDAV_Server
0
     {
0
         $info = $this->get_path_info($options['path']);
0
         
0
- if (!is_null($info['object']))
0
- {
0
- return '405 Method not allowed';
0
- }
0
-
0
         // Creation support
0
         if (is_null($info['parent']))
0
         {
0
@@ -280,6 +275,7 @@ class midcom_core_helpers_webdav extends HTTP_WebDAV_Server
0
         $page->up = $info['parent']->id;
0
         $page->name = basename($options['path']);
0
         $page->title = $page->name;
0
+ $page->info = 'active';
0
         if (!$page->create())
0
         {
0
             return false;

Comments

    No one has commented yet.