[icinga-checkins] icinga.org: icinga-core/rbartels/html-cleanup: classic-ui: "fixed" Incorrect positioning status popup in statusmap #3861

git at icinga.org git at icinga.org
Tue Mar 26 21:01:17 CET 2013


Module: icinga-core
Branch: rbartels/html-cleanup
Commit: 8be08214be461fe186c5ee6520cf449a5b77c7a0
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=8be08214be461fe186c5ee6520cf449a5b77c7a0

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Mon Mar 25 17:58:20 2013 +0100

classic-ui: "fixed" Incorrect positioning status popup in statusmap #3861

refs: #3861

whatthecommit.com: I know, I know, this is not how I'm supposed to do it,
but I can't think of something better.

---

 Changelog      |    1 +
 cgi/cgiutils.c |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index 88041c1..ff2c26c 100644
--- a/Changelog
+++ b/Changelog
@@ -63,6 +63,7 @@ FIXES
 * classic ui: fixed CGIs generating invalid html code/ json when throwing error #3507 - RB
 * classic ui: fixed JSON output is insufficiently escaped #3541 - RB
 * classic ui: fixed segfault when reading malformed log entries #3528 - RB
+* classic ui: "fixed" Incorrect positioning status popup in statusmap #3861 - RB
 
 * docs: add missing cmd_mod description in cgi params #3438 - MF
 * docs: search_string as cgi GET param works also for status.cgi #3451 - MF
diff --git a/cgi/cgiutils.c b/cgi/cgiutils.c
index 617189a..f574666 100644
--- a/cgi/cgiutils.c
+++ b/cgi/cgiutils.c
@@ -1204,7 +1204,9 @@ void document_header(int cgi_id, int use_stylesheet, char *cgi_title) {
 	if (embedded == TRUE)
 		return;
 
-	printf("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
+	if (cgi_id != STATUSMAP_CGI_ID)
+		printf("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
+
 	printf("<html>\n");
 	printf("<head>\n");
 	printf("<link rel=\"shortcut icon\" href=\"%sfavicon.ico\" type=\"image/ico\">\n", url_images_path);





More information about the icinga-checkins mailing list