From fb35be77f474fd2e2bdc45cd70c3fee83422502d Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 13 Sep 2019 11:06:41 +0200 Subject: [PATCH] chg: [Tracker] add more info --- bin/packages/Term.py | 5 +++-- var/www/modules/hunter/templates/Add_tracker.html | 6 +++--- var/www/modules/hunter/templates/showTracker.html | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bin/packages/Term.py b/bin/packages/Term.py index b4fcd832..f29cfb2c 100755 --- a/bin/packages/Term.py +++ b/bin/packages/Term.py @@ -16,6 +16,7 @@ from textblob import TextBlob sys.path.append(os.path.join(os.environ['AIL_FLASK'], 'modules')) import Flask_config +from flask import escape import Date import Item @@ -244,11 +245,11 @@ def add_tracked_term(term , term_type, user_id, level, tags, mails, dashboard=0) # create term tags list for tag in tags: - r_serv_term.sadd('tracker:tags:{}'.format(term_uuid), tag) + r_serv_term.sadd('tracker:tags:{}'.format(term_uuid), escape(tag) ) # create term tags mail notification list for mail in mails: - r_serv_term.sadd('tracker:mail:{}'.format(term_uuid), mail) + r_serv_term.sadd('tracker:mail:{}'.format(term_uuid), escape(mail) ) # toggle refresh module tracker list/set r_serv_term.set('tracker:refresh:{}'.format(term_type), time.time()) diff --git a/var/www/modules/hunter/templates/Add_tracker.html b/var/www/modules/hunter/templates/Add_tracker.html index ca7549ca..dc699a71 100644 --- a/var/www/modules/hunter/templates/Add_tracker.html +++ b/var/www/modules/hunter/templates/Add_tracker.html @@ -108,7 +108,7 @@