forked from Lainports/freebsd-ports
* 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: <freebsd-ports@dan.me.uk> (maintainer)
10 lines
620 B
C
10 lines
620 B
C
--- src/rtgutil.c.orig 2018-04-02 23:03:54 UTC
|
|
+++ src/rtgutil.c
|
|
@@ -37,6 +37,7 @@ int read_rtg_config(char *file, config_t
|
|
else if (!strcasecmp(p1, "DB_Database")) strncpy(set->dbdb, p2, sizeof(set->dbdb));
|
|
else if (!strcasecmp(p1, "DB_User")) strncpy(set->dbuser, p2, sizeof(set->dbuser));
|
|
else if (!strcasecmp(p1, "DB_Pass")) strncpy(set->dbpass, p2, sizeof(set->dbpass));
|
|
+ else if (!strcasecmp(p1, "Update_desc")) ; // no-op
|
|
|
|
/* Long longs not ANSI C. If OS doesn't support atoll() use default. */
|
|
else if (!strcasecmp(p1, "OutOfRange"))
|