mirror of https://github.com/MISP/misp-dashboard
fix: bug when label contain '\n'
parent
bc0d825ce9
commit
60470a1ade
|
@ -79,6 +79,7 @@ class Trendings_helper:
|
||||||
if specificLabel is None:
|
if specificLabel is None:
|
||||||
return self.getGenericTrending('TRENDINGS_EVENTS', dateS, dateE)
|
return self.getGenericTrending('TRENDINGS_EVENTS', dateS, dateE)
|
||||||
else:
|
else:
|
||||||
|
specificLabel = specificLabel.replace('\\n', '\n'); # reset correctly label with their \n (CR) instead of their char value
|
||||||
return self.getSpecificTrending('TRENDINGS_EVENTS', dateS, dateE, specificLabel)
|
return self.getSpecificTrending('TRENDINGS_EVENTS', dateS, dateE, specificLabel)
|
||||||
|
|
||||||
def getTrendingCategs(self, dateS, dateE):
|
def getTrendingCategs(self, dateS, dateE):
|
||||||
|
|
Loading…
Reference in New Issue