mcabber/src/settings.c
changeset 1519 ac5a2c262098
parent 1414 366ef500c522
child 1567 bff9633e38ee
equal deleted inserted replaced
1518:63dc211a4c1a 1519:ac5a2c262098
   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)    &&