"list graph" action: Search case-independent.
[collection4.git] / src / graph.c
index 2809ebb..d314bcc 100644 (file)
@@ -14,7 +14,7 @@
 #include "graph_config.h"
 #include "common.h"
 #include "filesystem.h"
-#include "utils_params.h"
+#include "utils_cgi.h"
 
 #include <fcgiapp.h>
 #include <fcgi_stdio.h>
@@ -284,6 +284,8 @@ int graph_search (graph_config_t *cfg, const char *term, /* {{{ */
     return (status);
   }
 
+  strtolower (buffer);
+
   if (strstr (buffer, term) != NULL)
   {
     status = inst_foreach (cfg->instances, graph_search_submit, &data);