fix
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 11 Jul 2019 15:10:11 +0000 (17:10 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 11 Jul 2019 15:10:11 +0000 (17:10 +0200)
src/rest/gnunet-rest-server.c

index 8154f33d884aa2f7aa48e1e742a9de213a4bdfa3..161da157b53ab9f8e72570591e41b42cebd69404 100644 (file)
@@ -449,10 +449,10 @@ create_response (void *cls,
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Origin: %s\n", origin);
       //Only echo for browser plugins
       if ((0 ==
-           strcmp ("moz-extension://", origin, strlen ("moz-extension://"))) ||
-          (0 == strcmp ("chrome-extension://",
-                        origin,
-                        strlen ("chrome-extension://"))))
+           strncmp ("moz-extension://", origin, strlen ("moz-extension://"))) ||
+          (0 == strncmp ("chrome-extension://",
+                         origin,
+                         strlen ("chrome-extension://"))))
       {
         if (NULL != origin)
           MHD_add_response_header (con_handle->response,