Skip to content

Commit efeb6dc

Browse files
authored
fix: terms and conditions link validator to allow URL (#519)
1 parent 6af0248 commit efeb6dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

substrate-node/pallets/pallet-tfgrid/src/terms_cond.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ impl<T: Config> Clone for TermsAndConditions<T> {
9595

9696
fn validate_document_link_input(input: &[u8]) -> bool {
9797
// TODO: find better alternative
98-
input
99-
.iter()
100-
.all(|c| matches!(c, b'a'..=b'z' | b'A'..=b'Z' | b'0'..=b'9' | b'-' | b'_'))
98+
true
10199
}
102100

103101
fn validate_document_hash_input(input: &[u8]) -> bool {

0 commit comments

Comments
 (0)