1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

fixed a bug in get ccnet server addr

This commit is contained in:
lins05
2012-08-09 16:49:54 +08:00
parent 140959affb
commit 0477081eb4

View File

@@ -77,7 +77,7 @@ if ccnet_config.has_option('General', 'SERVICE_URL') and \
service_url = service_url[:idx]
if '/' in service_url:
# strip url suffix like the '/seahub' part of www.gonggeng.org/seahub
idx = service_url.rindex(':')
idx = service_url.rindex('/')
service_url = service_url[:idx]
CCNET_SERVER_ADDR = service_url