mirror of https://github.com/CIRCL/url-abuse
Post submission to EUPI, hide response if the URL is unknown.
parent
8ecea977e8
commit
2f91def106
|
@ -464,6 +464,7 @@ def eupi(url, key, q):
|
||||||
r = response.get('results')[0]['tag_label']
|
r = response.get('results')[0]['tag_label']
|
||||||
_cache_set(q, r, 'eupi')
|
_cache_set(q, r, 'eupi')
|
||||||
return r
|
return r
|
||||||
|
eu.post_submission(q)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -206,6 +206,9 @@
|
||||||
link: function(scope, element, attrs) {
|
link: function(scope, element, attrs) {
|
||||||
var get_response = function(jobID) {
|
var get_response = function(jobID) {
|
||||||
globFct.poller(jobID, function(data){
|
globFct.poller(jobID, function(data){
|
||||||
|
if (data === "inconnu"){
|
||||||
|
return;
|
||||||
|
}
|
||||||
scope.response = data;
|
scope.response = data;
|
||||||
if(data === "clean"){
|
if(data === "clean"){
|
||||||
scope.alert_val = "success";
|
scope.alert_val = "success";
|
||||||
|
|
Loading…
Reference in New Issue