diff --git a/libraries/webapptask.py b/libraries/webapptask.py index 8903cb7..48bd50b 100644 --- a/libraries/webapptask.py +++ b/libraries/webapptask.py @@ -43,7 +43,7 @@ class WebAppTask(Task): return False - if self.data['path']!='/' and not re.match('^/[\w.-]*/$', self.data['path'].strip()): + if self.data['path']!='/' and not re.match(r'^/[\w.-]*/$', self.data['path'].strip()): self.logtask.insert({'status':1, 'progress': 100, 'error': 1, 'task_id': self.id, 'server': self.server, 'message': 'Error: format wrong for path, you need this format / or /path/ '+self.data['path']}) return False