diff --git a/nostrdb/src/content_parser.c b/nostrdb/src/content_parser.c index 7767a727..9243ff8a 100644 --- a/nostrdb/src/content_parser.c +++ b/nostrdb/src/content_parser.c @@ -423,7 +423,7 @@ static int parse_url(struct cursor *cur, struct ndb_block *block) { } // smart parens - if (start - 1 >= 0 && + if ((start - 1) >= cur->start && start < cur->end && *(start - 1) == '(' && (cur->p - 1) < cur->end &&