]> git.ipfire.org Git - telemetry.git/commitdiff
queue: Don't allow colons in object names
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Oct 2025 14:28:39 +0000 (14:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Oct 2025 14:28:39 +0000 (14:28 +0000)
This breaks generating graphs where colons are used as delimiter.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/queue.c

index 5edc6d973b033662add793bf20a39c1f4a1e719e..0459bd80551e7a30e7a9ceec165fbf238f41f5e6 100644 (file)
@@ -274,6 +274,10 @@ static int td_queue_valid_object(td_queue* queue, const char* object) {
                        case '\'':
                                break;
 
+                       // Colons are now allowed
+                       case ':':
+                               break;
+
                        // The rest is allowed
                        default:
                                continue;