diff --git a/plugins/rsyncd/index.py b/plugins/rsyncd/index.py index eb4d7016c..7359c4d83 100755 --- a/plugins/rsyncd/index.py +++ b/plugins/rsyncd/index.py @@ -90,7 +90,9 @@ def getLog(): def initConf(): conf_path = appConf() conf = public.readFile(conf_path) - conf = re.sub('^#(.*)', '', conf) + + compile_sub = re.compile('^#(.*)',re.M) + conf = compile_sub.sub('', conf) conf_tpl_path = getPluginDir() + '/conf/rsyncd.conf' if conf.strip() == '': content = public.readFile(conf_tpl_path)