about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2018-06-25 08:22:58 +0320
committerPaul Fariello <paul@fariello.eu>2018-09-05 13:52:20 +0200
commit71c9cbf8a8e8b3925f11756603ad6cb4b9828350 (patch)
treefa1ab0bbb18c3fc5c16ecb475aa9e135dc38c1bc /src
parent233e076be95baf13a23e9dbefac208d424a57e5d (diff)
downloadprofani-tty-71c9cbf8a8e8b3925f11756603ad6cb4b9828350.tar.gz
Conform to Section 3.2.2.1 of XML Schema Part 2: Datatypes
In accordance with Section 3.2.2.1 of XML Schema Part 2: Datatypes, the
allowable lexical representations for the xs:boolean datatype are the
strings "0" and "false" for the concept 'false' and the strings "1" and
"true" for the concept 'true'; implementations MUST support both styles
of lexical representation.
Diffstat (limited to 'src')
-rw-r--r--src/ui/confwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/confwin.c b/src/ui/confwin.c
index 73c12a59..80937f7d 100644
--- a/src/ui/confwin.c
+++ b/src/ui/confwin.c
@@ -258,7 +258,7 @@ _confwin_form_field(ProfWin *window, char *tag, FormField *field)
             if (value == NULL) {
                 win_appendln(window, THEME_OFFLINE, "FALSE");
             } else {
-                if (g_strcmp0(value, "0") == 0) {
+                if (g_strcmp0(value, "0") == 0 || g_strcmp0(value, "false") == 0) {
                     win_appendln(window, THEME_OFFLINE, "FALSE");
                 } else {
                     win_appendln(window, THEME_ONLINE, "TRUE");