aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-01-07 21:38:52 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-01-07 21:38:52 +0000
commita5155ba94805976af4df3194614c2e2244dd0a8a (patch)
treef9302f18831dcb19b62dec1018f6eba4ce64b931
parent75d9a94cafa546a5de2a9f4ee25352bb95395c5e (diff)
downloadsitesummary-a5155ba94805976af4df3194614c2e2244dd0a8a.tar.gz
sitesummary-a5155ba94805976af4df3194614c2e2244dd0a8a.tar.bz2
sitesummary-a5155ba94805976af4df3194614c2e2244dd0a8a.tar.xz
Make sure entry IDs are lower case, independend of what the client
submitted.
-rw-r--r--debian/changelog2
-rw-r--r--sitesummary-collector.cgi2
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 925a456..73dbc84 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ sitesummary (0.0.53) UNRELEASED; urgency=low
* Only reload Nagios in cron job if the generated configuration
changed.
* Quiet down first invocation of the cron job.
+ * Make sure entry IDs are lower case, independend of what the client
+ submitted.
-- Petter Reinholdtsen <pere@debian.org> Thu, 07 Jan 2010 20:03:00 +0100
diff --git a/sitesummary-collector.cgi b/sitesummary-collector.cgi
index e3800af..7d10de0 100644
--- a/sitesummary-collector.cgi
+++ b/sitesummary-collector.cgi
@@ -106,7 +106,7 @@ sub extract_unique_id {
close (IFCONFIG);
#print STDERR "MAC: $eth0mac\n";
my $mac = $eth0mac || $eth1mac || $eth2mac || "unknown";
- return "ether-$mac";
+ return lc("ether-$mac");
}
sub process_entry {