diff options
| author | 2023-08-14 09:32:17 +0200 | |
|---|---|---|
| committer | 2023-08-14 09:32:17 +0200 | |
| commit | 4c14a2e93ce4c2ac9f523deb7ae1ec2396a0aaa2 (patch) | |
| tree | c16afc1bca980c953f2dff6b51c278fd39927643 /utils.c | |
| parent | Backport from xs. (diff) | |
| download | penes-snac2-4c14a2e93ce4c2ac9f523deb7ae1ec2396a0aaa2.tar.gz penes-snac2-4c14a2e93ce4c2ac9f523deb7ae1ec2396a0aaa2.tar.xz penes-snac2-4c14a2e93ce4c2ac9f523deb7ae1ec2396a0aaa2.zip | |
Sanitize local user names in the greeting page.
Diffstat (limited to 'utils.c')
| -rw-r--r-- | utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -13,7 +13,7 @@ | |||
| 13 | #include <sys/stat.h> | 13 | #include <sys/stat.h> |
| 14 | #include <stdlib.h> | 14 | #include <stdlib.h> |
| 15 | 15 | ||
| 16 | const char *default_srv_config = "{" | 16 | static const char *default_srv_config = "{" |
| 17 | "\"host\": \"\"," | 17 | "\"host\": \"\"," |
| 18 | "\"prefix\": \"\"," | 18 | "\"prefix\": \"\"," |
| 19 | "\"address\": \"127.0.0.1\"," | 19 | "\"address\": \"127.0.0.1\"," |
| @@ -30,7 +30,7 @@ const char *default_srv_config = "{" | |||
| 30 | "\"admin_account\": \"\"" | 30 | "\"admin_account\": \"\"" |
| 31 | "}"; | 31 | "}"; |
| 32 | 32 | ||
| 33 | const char *default_css = | 33 | static const char *default_css = |
| 34 | "body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em; word-wrap: break-word; }\n" | 34 | "body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em; word-wrap: break-word; }\n" |
| 35 | "pre { overflow-x: scroll; }\n" | 35 | "pre { overflow-x: scroll; }\n" |
| 36 | ".snac-embedded-video, img { max-width: 100% }\n" | 36 | ".snac-embedded-video, img { max-width: 100% }\n" |
| @@ -60,7 +60,7 @@ const char *default_css = | |||
| 60 | ".snac-poll-result { margin-left: auto; margin-right: auto; }\n" | 60 | ".snac-poll-result { margin-left: auto; margin-right: auto; }\n" |
| 61 | ; | 61 | ; |
| 62 | 62 | ||
| 63 | const char *greeting_html = | 63 | static const char *greeting_html = |
| 64 | "<!DOCTYPE html>\n" | 64 | "<!DOCTYPE html>\n" |
| 65 | "<html><head>\n" | 65 | "<html><head>\n" |
| 66 | "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n" | 66 | "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>\n" |