From 65e3fb58c01778942cb85438ff96201c88b721bc Mon Sep 17 00:00:00 2001 From: Rodrigo Osorio Date: Fri, 31 May 2019 12:58:28 +0000 Subject: Fix net/rtg with modern perl and php * Fix runtime PHP errors if short_opentag is disabled (default) * Remove most PHP warnings/notices that go to error_log * Fix HTML output to be valid * Fix quoting of SQL objects * Fix escaping of user-provided SQL data (potential sql injection) * Widen fields in 95.php and 95.pl for interface and router names * Fix warnings in perl modules in newer perl versions * Fix createdb script to use CREATE USER/GRANT not manipulate user db directly * Add "Update_desc" config entry to auto-update port descriptions from snmp * Update default SNMP version to 2 PR: 227376 Submitted by: (maintainer) --- net/rtg/files/patch-etc_rtg.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 net/rtg/files/patch-etc_rtg.conf (limited to 'net/rtg/files/patch-etc_rtg.conf') diff --git a/net/rtg/files/patch-etc_rtg.conf b/net/rtg/files/patch-etc_rtg.conf new file mode 100644 index 000000000000..5cb1317f249a --- /dev/null +++ b/net/rtg/files/patch-etc_rtg.conf @@ -0,0 +1,10 @@ +--- etc/rtg.conf.orig 2018-04-02 23:07:32 UTC ++++ etc/rtg.conf +@@ -12,3 +12,7 @@ DB_Database rtg + DB_User snmp + DB_Pass rtgdefault + Threads 5 ++# Set Update_desc to 1 to cause rtgtargmkr.pl to auto-update descriptions from ++# SNMP port data ++Update_desc 0 ++ -- cgit v1.2.3