Possibly fix #79

This commit is contained in:
Henrique Dias committed 2017-04-15 14:00:41 +01:00
1 parent e46a007c71
commit 056ea2b8bd
6 files changed
+18 -9

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@
<script>
var user = JSON.parse('{{ Marshal .User }}'),
webdavURL = "{{.Config.AbsoluteURL}}{{.Config.WebDavURL}}",
webdavURL = "{{.Config.AbsoluteWebdavURL }}",
baseURL = "{{.Config.AbsoluteURL}}",
prefixURL = "{{ .Config.PrefixURL }}";
</script>
+2 -2
View File
@@ -411,7 +411,7 @@ func (fi bindataFileInfo) Sys() interface{} {
return nil
}
var _templatesBaseTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xe4\x5a\xdf\x6f\xe3\x36\xf2\x7f\x2f\xd0\xff\x61\x2a\x14\x68\x82\x6f\x2d\x7d\xbb\x7d\x39\xa4\xb2\x8a\xbd\x24\x45\xf7\x6e\xb3\xbb\x68\x76\x7b\xb8\x27\x83\x16\xc7\x16\x1b\x8a\x54\x49\xca\x8e\x63\xf8\x7f\x3f\x90\xa2\x64\xd9\x96\xfc\x2b\xc9\xe1\x70\xb7\x2f\x59\x53\x9c\x0f\x67\x3e\x33\xc3\x19\x52\x8a\xbf\xb9\xf9\x78\xfd\xf9\x9f\x9f\x6e\x21\x33\x39\x4f\xbe\xfe\x2a\xf6\x7f\x97\x4b\xf8\x96\x8c\xf5\x97\xdf\xde\xc3\xd5\x10\xc2\x6b\x29\x26\x6c\x1a\xbe\x1d\x6b\xc9\x4b\x83\x76\x78\xb5\xb2\xb3\x91\xd0\xe4\xeb\xaf\x00\x00\x62\xc3\x0c\xc7\x64\xb9\x0c\x3f\x90\x1c\x57\xab\x38\xaa\x06\xfc\xd3\x1c\x0d\x01\x41\x72\x1c\x06\x33\x86\xf3\x42\x2a\x13\x40\x2a\x85\x41\x61\x86\xc1\x9c\x51\x93\x0d\x29\xce\x58\x8a\x03\xf7\xe3\x7b\x60\x82\x19\x46\xf8\x40\xa7\x84\xe3\xf0\x87\xef\x21\x27\x8f\x2c\x2f\xf3\xf5\x40\xa9\x51\xb9\x5f\x64\xcc\x71\xf8\xff\xc1\xc6\x5a\x69\x46\x94\x46\x33\x0c\x4a\x33\x19\xfc\xa5\x79\xc6\x99\x78\x00\x85\x7c\x18\x68\xb3\xe0\xa8\x33\x44\x13\x40\xa6\x70\x32\x0c\x96\xcb\x1e\x4b\xa3\xd1\x84\x71\xcc\x89\x20\x53\x54\x4c\x18\x54\x82\xf0\x28\xd5\x3a\x12\x52\xe5\x84\xb3\x27\x0c\x53\xad\x5f\x6b\x91\x89\x14\x46\xbf\xe6\x02\x15\x48\x7b\x85\xe5\x72\x00\x6c\x02\x02\x21\xfc\xa2\x51\x85\xf7\x76\xc6\xbd\x5d\x06\x82\x00\x06\xd6\xf9\x4e\x11\x27\x99\x2c\x97\x70\x7d\x7f\xbf\x3b\xd5\x46\x41\x35\x63\x8d\x8a\x82\x56\xf2\x35\x42\xaa\x58\x61\xfc\x84\x19\x51\xce\xab\x30\x84\xbf\xdd\x7f\xfc\x10\x16\xd6\x87\x17\xdf\x2d\x97\x70\x47\x94\xce\x08\xaf\xd6\x80\xd5\xea\xbb\xcb\xef\x2b\x11\xfb\x6f\x8e\x63\x4a\x66\xd6\xca\x21\x04\xcb\x65\x87\xf9\xab\xd5\x7a\xf8\x1f\x38\xbe\x71\xb3\x57\xab\xa0\x05\x32\x26\x1a\xf7\x43\xb4\x67\x17\x0a\x27\xec\xb1\x99\xdf\x50\xfe\xa9\x19\x5f\xad\x82\x9f\xbc\x8d\xd1\x86\x91\xde\x64\xd0\x2a\x3d\xd9\x5b\x7f\xe8\x28\x95\x79\x2e\x45\xf8\x87\x0e\x80\xe2\x04\x55\xb2\x05\xef\x5d\x17\xbe\xd3\x37\x4c\xc1\xda\x53\xcf\x5a\x94\x33\x6d\x98\x98\xee\x5f\x15\xb9\xc6\x17\x59\x90\xa4\x18\x69\x95\x0e\x72\x26\xec\xff\xbb\x56\x7d\x09\xa3\x66\x28\xa8\x54\xd1\x44\xaa\xfc\xcd\x1f\xba\xdf\xb6\x67\x2e\x83\x94\x19\xa9\x0e\x50\x27\x68\xc3\x5c\xed\x40\xbf\xca\xaf\xe5\x54\xde\x0a\xbb\xc5\xd1\x93\xc9\xcd\xca\xa9\x6c\xab\x42\x8a\x82\xb3\x94\x18\x76\x28\x80\x6a\x7d\xe2\xc8\x6f\xf1\xf1\x58\xd2\x45\xcd\x87\x1d\x43\x95\xac\xb3\x21\xa6\x6c\x06\x8c\x0e\x03\x23\x8b\xc1\x98\xa8\xa0\xf5\xac\x7e\x9e\xc4\x45\xf2\x0b\xe3\x08\x77\x15\x45\x71\x54\x24\x71\x64\x1f\xec\xce\x75\x58\x1a\x89\x4a\xb3\x6d\x28\x37\x85\x41\xca\x89\xd6\xc3\x20\x27\x06\x95\xad\x12\x2c\x95\x42\x07\xe0\x6a\xce\x30\xb8\xf7\xa2\x15\x44\x1c\xb1\x4e\x10\x51\x94\x06\xcc\xa2\xc0\x61\x60\xf0\xd1\x04\x50\x70\x92\x62\x26\x39\x45\x55\x63\x80\x54\x80\x8f\x98\x96\x06\x81\x80\xcd\x3d\x22\x68\x18\x86\x9d\x6a\xed\x1a\xb3\xf1\xe8\xbd\x24\xd4\x26\x51\x18\x76\xd9\xdd\x4c\x2d\x92\x3e\xfb\x40\x17\x4c\x04\x09\x29\x8d\x54\x28\x70\x6e\x0d\xb3\x34\x76\xa8\xd2\x45\xac\x1f\xeb\xa0\xdb\xaf\x46\x52\x1b\x19\x81\x63\x9f\xcb\xa9\x2c\xcd\x59\xec\xbf\xf7\xa2\xf8\xc8\xcc\xc8\xc8\x11\x29\x8a\x5d\x17\x6c\x6b\xb8\xab\x5d\x13\x08\x63\x69\x8c\xcc\x7b\xe3\x6a\x57\xc3\x56\xf5\xb2\xcd\x08\x04\x51\x50\x67\xce\x8e\xe9\x94\x18\x32\xa0\x4a\x16\x54\xce\x45\x17\x11\x85\xc2\x19\x93\xa5\xee\xa2\x62\x2f\x1d\x89\x2e\xc7\x94\x29\x4c\x8d\x54\x8b\x11\x51\x4a\xce\x47\x1c\x27\xa6\x3b\x1c\x1d\x54\xc9\x6b\xac\x5a\xa3\x4a\x87\xb1\x42\x42\x53\x55\xe6\xe3\x5e\x35\xac\xcd\x8a\x88\x29\xc2\xb7\xcc\x60\xee\xda\xb6\xbf\x36\x62\x77\xa4\x80\x2e\x0a\x9a\x95\xc9\xba\x7b\xa8\x1b\x3f\x5b\x33\x2b\xb0\xd0\xd7\xb3\x24\xe6\x2c\x69\x06\x1d\xb5\xb6\xc4\x73\x1b\x85\x64\x8f\x5e\xed\xdd\x6d\x67\xe5\xa8\xe4\x47\x06\xf0\x36\x5c\xd7\xd3\x5d\xbf\xc7\x85\xa3\x30\x2d\x95\x42\x61\x06\x76\x93\x0e\xac\x11\x6b\xfd\x0b\xfb\xb3\x4b\xc7\x63\x33\x46\x57\xeb\x36\x25\x17\x28\xd3\x6e\xc3\x6e\x70\x2b\x37\xda\xb5\x07\x52\xf0\x45\x97\x13\x7d\xd0\x12\x41\xe1\x42\x48\xe3\xd1\x2e\xe1\xa2\x6a\xab\xde\x72\x2e\xe7\xb7\x94\x99\xcb\x4e\x2a\xeb\xa2\x71\xeb\x8a\x4d\x1f\x3b\x6e\x0e\xfe\x09\xe1\x0d\x31\x24\xbc\x93\x14\x21\xc8\x89\x7a\xa8\x22\xad\x37\x47\xfa\xb2\x02\xe7\x01\x48\x91\x72\x96\x3e\x0c\x03\x21\xcd\xbb\xbc\xe0\x98\xa3\x30\x48\x2f\x70\x86\xc2\x5c\xfe\x74\x72\xd6\xd4\x9b\xc8\x27\xbf\x40\xa2\x30\x97\x33\x1c\x29\xa4\x23\x5c\x60\xcf\x5e\x7e\x66\xb4\x6c\xf2\xf1\x3b\xd3\x25\xe1\x60\x54\x89\x27\x71\x61\x0b\xfc\x40\xcb\x52\xa5\x78\xb6\xb9\x9f\xe5\x74\xca\x11\x2c\x14\xd4\x50\xa9\xa4\xcf\xb0\xf7\x34\x2e\xfa\x6c\xd3\x64\x76\xbe\x51\xf7\x4e\xd8\x42\xbc\x82\xdb\xb6\x1a\xdc\x63\x8c\x91\x05\x8a\xf3\x8d\x41\x04\x45\xe6\x41\x62\x51\x46\x4c\x8c\x7c\x01\xee\x81\xd3\x05\x11\x89\x97\x89\x23\xf7\xeb\x85\x09\x70\x3b\xc5\xce\xe6\x70\x51\xef\x1b\xa7\x10\x63\x33\xec\x6c\x62\xee\x9c\xf0\x44\xaa\x39\x51\xf4\x10\x23\x76\x32\xd8\x7d\xf0\xf5\x38\xf1\x81\xb1\xc5\xcc\x49\x7c\x28\x14\x24\x3f\x9f\x11\xbb\x5e\x90\xe4\x92\xe2\xc8\x26\xf4\x2b\x04\xbf\xb3\x73\xcb\xc0\x33\x12\x82\x22\x47\x73\xbe\x9d\x37\x5e\xbc\x82\x71\xdd\xa8\x73\xea\x8d\xff\xfd\x0c\x0f\x77\xcd\x3f\x54\x86\x21\x97\xe3\xa6\xc2\xfa\xb8\x56\x9d\xd6\xf5\xf7\x6c\x56\x62\x34\x43\xd5\xe1\xb4\xa3\xbb\x01\xbf\x36\xLine truncated
var _templatesBaseTmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xe4\x5a\x5f\x6f\xdb\x38\x12\x7f\x2f\xd0\xef\x30\x2b\x2c\xb0\x09\xae\xb6\x6e\xbb\x2f\x87\xac\xac\x45\x2f\xc9\x62\x7b\x97\xb4\x45\xd3\xee\xe1\x9e\x0c\x5a\x1c\x5b\x6c\x28\x52\x4b\x52\x76\x1c\xc3\xdf\xfd\x40\x8a\x92\x65\x5b\xf2\xbf\x24\x87\xc3\x6d\x5e\x1c\x51\x9c\x7f\xbf\x99\xe1\x0c\x49\x45\xdf\x5d\x7d\xbc\xfc\xf2\xef\x4f\xd7\x90\x9a\x8c\xc7\xaf\x5f\x45\xfe\x77\xb1\x80\xef\xc9\x48\x7f\xfd\x7c\x03\x17\x03\xe8\x5f\x4a\x31\x66\x93\xfe\xbb\x91\x96\xbc\x30\x68\x87\x97\x4b\x3b\x1b\x09\x8d\x5f\xbf\x02\x00\x88\x0c\x33\x1c\xe3\xc5\xa2\xff\x81\x64\xb8\x5c\x46\x61\x39\xe0\xdf\x66\x68\x08\x08\x92\xe1\x20\x98\x32\x9c\xe5\x52\x99\x00\x12\x29\x0c\x0a\x33\x08\x66\x8c\x9a\x74\x40\x71\xca\x12\xec\xb9\x87\x37\xc0\x04\x33\x8c\xf0\x9e\x4e\x08\xc7\xc1\x8f\x6f\x20\x23\x0f\x2c\x2b\xb2\xd5\x40\xa1\x51\xb9\x27\x32\xe2\x38\xf8\x6b\xb0\x26\x2b\x49\x89\xd2\x68\x06\x41\x61\xc6\xbd\xbf\xd5\xef\x38\x13\xf7\xa0\x90\x0f\x02\x6d\xe6\x1c\x75\x8a\x68\x02\x48\x15\x8e\x07\xc1\x62\xd1\x61\x69\x38\x1c\x33\x8e\x19\x11\x64\x82\x8a\x09\x83\x4a\x10\x1e\x26\x5a\x87\x42\xaa\x8c\x70\xf6\x88\xfd\x44\xeb\x97\x12\x32\x96\xc2\xe8\x97\x14\x50\x32\x69\x4a\x58\x2c\x7a\xc0\xc6\x20\x10\xfa\x5f\x35\xaa\xfe\x9d\x9d\x71\x67\xc5\x40\x10\x40\xcf\x3a\xdf\x29\xe2\x28\xe3\xc5\x02\x2e\xef\xee\xb6\xa7\xda\x28\x28\x67\xac\xb8\xa2\xa0\x25\x7d\xc5\x21\x51\x2c\x37\x7e\xc2\x94\x28\xe7\x55\x18\xc0\x3f\xee\x3e\x7e\xe8\xe7\xd6\x87\x67\x3f\x2c\x16\x70\x4b\x94\x4e\x09\x2f\x65\xc0\x72\xf9\xc3\xf9\x9b\x92\xc4\xfe\xcd\x70\x44\xc9\xd4\x5a\x39\x80\x60\xb1\xd8\x34\xff\x5f\xf5\xeb\xe5\x32\x68\x90\x8d\x88\xc6\x4e\xa2\xaf\x9f\x6f\xd6\x67\xe7\x0a\xc7\xec\xa1\x9e\x5f\x83\xfc\xa9\x1e\x5f\x2e\x83\x9f\xbd\x55\xe1\x9a\x59\xde\x48\xd0\x2a\x39\xda\x3f\xdf\x74\x98\xc8\x2c\x93\xa2\xff\x4d\x07\x40\x71\x8c\x2a\xde\x60\xef\x9d\xd5\x7f\xaf\xaf\x98\x82\x95\x6f\x9e\x24\x94\x33\x6d\x98\x98\xec\x96\x8a\x5c\xe3\xb3\x08\x24\x09\x86\x5a\x25\xbd\x8c\x09\xfb\x7f\x9b\xd4\xe7\x30\x6a\x8a\x82\x4a\x15\x8e\xa5\xca\xde\x7e\xd3\xdd\xb6\x3d\x51\x0c\x52\x66\xa4\xda\x03\x9d\xa0\x35\x72\x95\x03\xbd\x94\xdf\x8a\x89\xbc\x16\x76\x51\xa3\x47\x83\x9b\x16\x13\xd9\x54\x85\xe4\x39\x67\x09\x31\x6c\x5f\x00\x55\xfa\x44\xa1\x5f\xd4\xa3\x91\xa4\xf3\x0a\x0f\x3b\x86\x2a\x5e\x65\x43\x44\xd9\x14\x18\x1d\x04\x46\xe6\xbd\x11\x51\x41\xe3\x5d\xf5\x3e\x8e\xf2\xf8\x57\xc6\x11\x6e\x4b\x88\xa2\x30\x8f\xa3\xd0\xbe\xd8\x9e\xeb\x78\x69\x24\x2a\x49\x37\x59\xb9\x29\x0c\x12\x4e\xb4\x1e\x04\x19\x31\xa8\x6c\x5d\x60\x89\x14\x3a\x00\x57\x65\x06\xc1\x9d\x27\x2d\x59\x44\x21\x6b\x65\x22\xf2\xc2\x80\x99\xe7\x38\x08\x0c\x3e\x98\x00\x72\x4e\x12\x4c\x25\xa7\xa8\x2a\x1e\x20\x15\xe0\x03\x26\x85\x41\x20\x60\x73\x8f\x08\xda\xef\xf7\x5b\xd5\xda\x36\x66\xed\xd5\x8d\x24\xd4\x26\x51\xbf\xdf\x66\x77\x3d\x35\x8f\xbb\xec\x03\x9d\x33\x11\xc4\xa4\x30\x52\xa1\xc0\x99\x35\xcc\xc2\xd8\xa2\x4a\x1b\xb0\x7e\xac\x05\x6e\x2f\x8d\x24\x36\x32\x02\x87\x3e\x97\x13\x59\x98\x93\xd0\xbf\xf1\xa4\xf8\xc0\xcc\xd0\xc8\x21\xc9\xf3\x6d\x17\x6c\x6a\xb8\xad\x5d\x1d\x08\x23\x69\x8c\xcc\x3a\xe3\x6a\x5b\xc3\x46\xbd\xb2\xed\x07\x04\x61\x50\x65\xce\x96\xe9\x94\x18\xd2\xa3\x4a\xe6\x54\xce\x44\x1b\x10\xb9\xc2\x29\x93\x85\x6e\x83\x62\x27\x1c\xb1\x2e\x46\x94\x29\x4c\x8c\x54\xf3\x21\x51\x4a\xce\x86\x1c\xc7\xa6\x3d\x1c\x1d\xab\x82\x57\xbc\x2a\x8d\x4a\x1d\x46\x0a\x09\x4d\x54\x91\x8d\x3a\xd5\xb0\x36\x2b\x22\x26\x08\xdf\x33\x83\x99\x6b\xd4\xfe\x5e\x93\xdd\x92\x1c\xda\x20\xa8\x25\x93\x55\xbf\x50\xb5\x7a\xcb\xa5\x7d\xb0\xcc\xfa\xbe\x9e\xc5\x11\x67\x71\x3d\xe8\xa0\xb5\x45\x9d\xdb\x28\x24\x3b\xf4\x6a\xae\x6e\x5b\x92\xc3\x82\x1f\x18\xc0\x9b\xec\xda\xde\x6e\xfb\x3d\xca\x1d\x84\x49\xa1\x14\x0a\xd3\xb3\x8b\x74\x60\x8d\x58\xe9\x9f\xdb\xc7\x36\x1d\x0f\xcd\x18\x5d\xca\xad\x4b\x2e\x50\xa6\xdd\x82\x5d\xf3\x2d\xdd\x68\x65\xf7\xa4\xe0\xf3\x36\x27\xfa\xa0\x25\x82\xc2\x99\x90\xc6\x73\x3b\x87\xb3\xb2\x91\x7a\xc7\xb9\x9c\x5d\x53\x66\xce\x5b\xa1\xac\x8a\xc6\xb5\x2b\x36\x5d\xe8\xb8\x39\xf8\x07\xf4\xaf\x88\x21\xfd\x5b\x49\x11\x82\x8c\xa8\xfb\x32\xd2\x3a\x73\xa4\x2b\x2b\x70\x16\x80\x14\x09\x67\xc9\xfd\x20\x10\xd2\xbc\xcf\x72\x8e\x19\x0a\x83\xf4\x0c\xa7\x28\xcc\xf9\xcf\x47\x67\x4d\xb5\x88\x7c\xf2\x02\x62\x85\x99\x9c\xe2\x50\x21\x1d\xe2\x1c\x3b\xd6\xf2\x13\xa3\x65\x1d\x8f\xdf\x99\x2e\x08\x07\xa3\x0a\x3c\x0a\x0b\x5b\xe0\x7b\x5a\x16\x2a\xc1\x93\xcd\xfd\x22\x27\x13\x8e\x60\x59\x41\xc5\x2a\x91\xf4\x09\xf6\x1e\x87\x45\x97\x6d\x9a\x4c\x4f\x37\xea\xce\x11\x5b\x16\x2f\xe0\xb6\x8d\x06\xf7\x10\x63\x64\x8e\xe2\x74\x63\x10\x41\x91\x59\x10\x5b\x2e\x43\x26\x86\xbe\x00\x77\xb0\xd3\x39\x11\xb1\xa7\x89\x42\xf7\xf4\xcc\x00\xb8\x95\x62\x6b\x71\x38\xab\xd6\x8d\x63\x80\xb1\x19\x76\x32\x30\xb7\x8e\x78\x2c\xd5\x8c\x28\xba\x0f\x11\x3b\x19\xec\x3a\xf8\x72\x98\xf8\xc0\xd8\x40\xe6\x28\x3c\x14\x0a\x92\x9d\x8e\x88\x95\x17\xc4\x99\xa4\x38\xb4\x09\xfd\x02\xc1\xef\xec\xdc\x30\xf0\x84\x84\xa0\xc8\xd1\x9c\x6e\xe7\x95\x27\x2f\xd9\xb8\x6e\xd4\x39\xf5\xca\x3f\x3f\xc1\xc3\x6d\xf3\xf7\x95\x61\xc8\xe4\xa8\xae\xb0\x3e\xae\x55\xab\x75\xdd\x3d\x9b\xa5\x18\x4e\x51\xb5\x38\xed\xe0\x6e\xc0\xcb\x26\x4c\xf4\xaa\x91\xLine truncated
func templatesBaseTmplBytes() ([]byte, error) {
return bindataRead(
@@ -426,7 +426,7 @@ func templatesBaseTmpl() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/base.tmpl", size: 10787, mode: os.FileMode(438), modTime: time.Unix(1490471040, 0)}
info := bindataFileInfo{name: "templates/base.tmpl", size: 10773, mode: os.FileMode(438), modTime: time.Unix(1492260775, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
+1 -1
View File
@@ -36,7 +36,7 @@ func CommandRunner(c *caddy.Controller) (CommandFunc, error) {
}
fn = func(r *http.Request, c *Config, u *User) error {
path := strings.Replace(r.URL.Path, c.BaseURL+c.WebDavURL, "", 1)
path := strings.Replace(r.URL.Path, c.WebDavURL, "", 1)
path = u.Scope + "/" + path
path = filepath.Clean(path)
+11 -2
View File
@@ -31,6 +31,11 @@ func (c Config) AbsoluteURL() string {
return c.PrefixURL + c.BaseURL
}
// AbsoluteWebdavURL ...
func (c Config) AbsoluteWebdavURL() string {
return c.PrefixURL + c.WebDavURL
}
// Rule is a dissalow/allow rule
type Rule struct {
Regex bool
@@ -88,7 +93,7 @@ func Parse(c *caddy.Controller) ([]Config, error) {
cfg.BaseURL = strings.TrimPrefix(cfg.BaseURL, "/")
cfg.BaseURL = strings.TrimSuffix(cfg.BaseURL, "/")
cfg.BaseURL = "/" + cfg.BaseURL
cfg.WebDavURL = "webdav"
cfg.WebDavURL = ""
if cfg.BaseURL == "/" {
cfg.BaseURL = ""
@@ -234,12 +239,16 @@ func Parse(c *caddy.Controller) ([]Config, error) {
}
}
if cfg.WebDavURL == "" {
cfg.WebDavURL = "webdav"
}
caddyConf := httpserver.GetConfig(c)
cfg.PrefixURL = strings.TrimSuffix(caddyConf.Addr.Path, "/")
cfg.WebDavURL = "/" + strings.TrimPrefix(cfg.WebDavURL, "/")
cfg.Handler = &webdav.Handler{
Prefix: cfg.BaseURL + cfg.WebDavURL,
Prefix: cfg.WebDavURL,
FileSystem: cfg.FileSystem,
LockSystem: webdav.NewMemLS(),
}
+1 -1
View File
@@ -60,7 +60,7 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
}
// Checks if the request URL is for the WebDav server
if httpserver.Path(r.URL.Path).Matches(c.BaseURL + c.WebDavURL) {
if httpserver.Path(r.URL.Path).Matches(c.WebDavURL) {
// Checks for user permissions relatively to this PATH
if !user.Allowed(strings.TrimPrefix(r.URL.Path, c.WebDavURL)) {
return http.StatusForbidden, nil
+2 -2
View File
@@ -1,5 +1,5 @@
package page
var GIT_COMMIT_HASH = "37b14d6"
var GIT_COMMIT_HASH = "e46a007"
var CIRCLE_BUILD_NUM = ""
var GENERATED int64 = 1492007757358403000
var GENERATED int64 = 1492261242791293300