From patchwork Sat Aug 7 20:42:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo-Andres Hofmann X-Patchwork-Id: 4620 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GhvRW3LdSz3xGN for ; Sat, 7 Aug 2021 20:42:31 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GhvRT45gnz5Mn; Sat, 7 Aug 2021 20:42:29 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GhvRS4wrJz2y3q; Sat, 7 Aug 2021 20:42:28 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GhvRQ6fQRz2y0p for ; Sat, 7 Aug 2021 20:42:26 +0000 (UTC) Received: from arche.uberspace.de (arche.uberspace.de [185.26.156.147]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4GhvRK2MhhzZZ for ; Sat, 7 Aug 2021 20:42:21 +0000 (UTC) Received: (qmail 4220 invoked from network); 7 Aug 2021 20:42:20 -0000 Received: from localhost (HELO localhost) (127.0.0.1) by arche.uberspace.de with SMTP; 7 Aug 2021 20:42:20 -0000 From: Leo-Andres Hofmann To: development@lists.ipfire.org Subject: [PATCH] getrrdimage.cgi: Fix supported origins list Date: Sat, 7 Aug 2021 22:42:07 +0200 Message-Id: <20210807204207.1713-1-hofmann@leo-andres.de> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=none; spf=pass (mail01.ipfire.org: domain of hofmann@leo-andres.de designates 185.26.156.147 as permitted sender) smtp.mailfrom=hofmann@leo-andres.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1628368941; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mkySDEYGgidFaIZPDF26nIm08/gbrgfOYa2OUHx6snI=; b=X/cUBssNZCEzTHv6fkR3qHuOFNwFrm5cZ+2rayRPfcXtZRcTEkuu069qeuoiz8zrS8pppF RotECOoCDlE3Am4EznQEaSrpGacDCrj+ZB7UeKjnD1XNlwP/jvqLrFMJxMAlxDJ4XQkfZr MnfT0o9uXOnui+f/uusnaOY1oBNIJ0Lj3OAl1oDBe1scDGlO4W2JygN/R6EwdN9u85XpVy t2bKyMtZyECwPB29OcmWcdvDYIMEn1EYGpMnrtRCt2PIEvz2vYALPd5ujUsUzLhjWQHles DV9LdJCO6dBeQCJzhqp3vxPh+SKu0ekW/HjeuMki+SEmNtjbeUgirrDR+eu2Uw== ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1628368941; a=rsa-sha256; cv=none; b=OfKTCYdgtBYnSJDrrPbW6BqZCuHXFgrywEQWh70u3XYKNObNfZ3bXVk+SVbacsamyKoHwO 17hmLDiitq79PmFh1JFOmIIdDIVsY5T1jZZPeEF907CG9FX/es8GOwWxG+wagrZyARAd+y RCXkj4J4WvPhg8gbADM+dhQkrkjR8giAs+VL7cXXSoW+iw9K6gZ4kWOkNTXYFGL1XDpYkn PeMX75JTB26+T2Ocw6bsUQqix8KI4ngPm56LAD0YgsQ9jMYw6ZHXJAoVPf1fgWVtsmBw2k wz2I65+Uf0ivwfQ2SruzvzojnsDvroRc6iJkVF2K+KsSfj7DazTKkf6eCXJuLw== Authentication-Results: mail01.ipfire.org; dkim=none; spf=pass (mail01.ipfire.org: domain of hofmann@leo-andres.de designates 185.26.156.147 as permitted sender) smtp.mailfrom=hofmann@leo-andres.de; dmarc=none X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [1.43 / 11.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; MX_INVALID(0.50)[]; FROM_HAS_DN(0.00)[]; SPF_REPUTATION_HAM(-0.76)[-0.76262661286817]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; IP_REPUTATION_HAM(-0.01)[asn: 205766(0.00), country: DE(-0.01), ip: 185.26.156.147(0.00)]; MID_CONTAINS_FROM(1.00)[]; R_SPF_ALLOW(-0.20)[+mx]; DMARC_NA(0.00)[leo-andres.de]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:205766, ipnet:185.26.156.0/24, country:DE]; RCVD_COUNT_TWO(0.00)[2]; BAYES_HAM(-3.00)[99.99%] X-Rspamd-Queue-Id: 4GhvRK2MhhzZZ X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Support for the graphs of "services.cgi" is implemented, but it was forgotten to add this to the list of origins. This patch fixes the list and prevents possibly missing graphs. Signed-off-by: Leo-Andres Hofmann Reviewed-by: Bernhard Bitsch --- Well, to be honest, I just missed it while copy-pasting the origins and never checked that list again. html/cgi-bin/getrrdimage.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/getrrdimage.cgi b/html/cgi-bin/getrrdimage.cgi index 92f8b585d..26bcf0905 100644 --- a/html/cgi-bin/getrrdimage.cgi +++ b/html/cgi-bin/getrrdimage.cgi @@ -36,8 +36,8 @@ require "${General::swroot}/graphs.pl"; # List of graph origins that getrrdimage.cgi can process directly # (unknown origins are forwarded to ensure compatibility) my @supported_origins = ("entropy.cgi", "hardwaregraphs.cgi", "media.cgi", - "memory.cgi","netexternal.cgi", "netinternal.cgi", "netother.cgi", - "netovpnrw.cgi", "netovpnsrv.cgi", "qos.cgi", "system.cgi"); + "memory.cgi", "netexternal.cgi", "netinternal.cgi", "netother.cgi", + "netovpnrw.cgi", "netovpnsrv.cgi", "qos.cgi", "services.cgi", "system.cgi"); ### Process GET parameters ### # URL format: /?origin=[graph origin cgi]&graph=[graph name]&range=[time range]