logs.cgi/ids.dat: Change url to sid documentation site.

Message ID 20210405134248.3501-1-stefan.schantl@ipfire.org
State Accepted
Commit cdfbef5de73400be3648b82ecf88a6fe6370e962
Headers
Series logs.cgi/ids.dat: Change url to sid documentation site. |

Commit Message

Stefan Schantl April 5, 2021, 1:42 p.m. UTC
  Fixes #12596.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 html/cgi-bin/logs.cgi/ids.dat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Peter Müller April 5, 2021, 2:50 p.m. UTC | #1
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>

> Fixes #12596.
> 
> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
> ---
>  html/cgi-bin/logs.cgi/ids.dat | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/html/cgi-bin/logs.cgi/ids.dat b/html/cgi-bin/logs.cgi/ids.dat
> index 8918bc6da..74cad6267 100644
> --- a/html/cgi-bin/logs.cgi/ids.dat
> +++ b/html/cgi-bin/logs.cgi/ids.dat
> @@ -351,7 +351,7 @@ END
>  		print "target='_blank'>$sid</a></td>\n";
>  	} elsif ($sid >= 2000000 and $sid < 3000000) {
>  		# Link to emergingthreats if the rule sid is between 2000000 and 3000000.
> -		print "<a href='http://doc.emergingthreats.net/$sid' ";
> +		print "<a href='https://threatintel.proofpoint.com/sid/$sid' ";
>  		print "target='_blank'>$sid</a></td>\n";
>  	} else {
>  		# No external link for user defined rules
>
  

Patch

diff --git a/html/cgi-bin/logs.cgi/ids.dat b/html/cgi-bin/logs.cgi/ids.dat
index 8918bc6da..74cad6267 100644
--- a/html/cgi-bin/logs.cgi/ids.dat
+++ b/html/cgi-bin/logs.cgi/ids.dat
@@ -351,7 +351,7 @@  END
 		print "target='_blank'>$sid</a></td>\n";
 	} elsif ($sid >= 2000000 and $sid < 3000000) {
 		# Link to emergingthreats if the rule sid is between 2000000 and 3000000.
-		print "<a href='http://doc.emergingthreats.net/$sid' ";
+		print "<a href='https://threatintel.proofpoint.com/sid/$sid' ";
 		print "target='_blank'>$sid</a></td>\n";
 	} else {
 		# No external link for user defined rules