180 (strchr(line, '=') != NULL) || |
180 (strchr(line, '=') != NULL) || |
181 startswith(line, "pgp ", FALSE) || |
181 startswith(line, "pgp ", FALSE) || |
182 startswith(line, "source ", FALSE) || |
182 startswith(line, "source ", FALSE) || |
183 startswith(line, "color ", FALSE) || |
183 startswith(line, "color ", FALSE) || |
184 startswith(line, "otrpolicy", FALSE)) { |
184 startswith(line, "otrpolicy", FALSE)) { |
185 // Only accept the set, alias, bind, pgp and source commands |
185 // Only accept a few "safe" commands |
186 if (!runtime && |
186 if (!runtime && |
187 !startswith(line, "set ", FALSE) && |
187 !startswith(line, "set ", FALSE) && |
188 !startswith(line, "bind ", FALSE) && |
188 !startswith(line, "bind ", FALSE) && |
189 !startswith(line, "alias ", FALSE) && |
189 !startswith(line, "alias ", FALSE) && |
190 !startswith(line, "pgp ", FALSE) && |
190 !startswith(line, "pgp ", FALSE) && |