Skip to content

Commit f42a8ab

Browse files
committed
feat(su): block +link tags
1 parent e6b3022 commit f42a8ab

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

servers/su/src/domain/core/flows.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,12 @@ pub async fn write_item(
509509
return Err("Data-Protocol tag not present".to_string());
510510
}
511511

512+
if let Some(invalid_tag) = tags.iter().find(
513+
|tag| tag.name.ends_with("+link") || tag.value.ends_with("+link")
514+
) {
515+
return Err(format!("Tag {} cannot contain +link", invalid_tag.name));
516+
}
517+
512518
let type_tag = match type_tag {
513519
Some(t) => t,
514520
None => return Err("Invalid Type Tag".to_string()),

servers/su/su

-368 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)