fix issue pointed out in #54
Some checks failed
Build and Test / friends (push) Failing after 6m16s
Build and Test / sonic-transformed (push) Successful in 7m59s
Build and Test / wii-sports-club (push) Successful in 8m1s
Build and Test / minecraft-wiiu (push) Successful in 8m4s
Build and Test / fast-racing-neo (push) Successful in 8m6s
Build and Test / mario-tennis (push) Successful in 8m17s
Build and Test / splatoon-testfire (push) Successful in 8m16s
Build and Test / wii-u-chat (push) Successful in 8m29s
Build and Test / puyopuyo (push) Successful in 8m34s
Build and Test / splatoon (push) Successful in 8m37s
Build and Test / super-mario-maker (push) Successful in 8m49s
Some checks failed
Build and Test / friends (push) Failing after 6m16s
Build and Test / sonic-transformed (push) Successful in 7m59s
Build and Test / wii-sports-club (push) Successful in 8m1s
Build and Test / minecraft-wiiu (push) Successful in 8m4s
Build and Test / fast-racing-neo (push) Successful in 8m6s
Build and Test / mario-tennis (push) Successful in 8m17s
Build and Test / splatoon-testfire (push) Successful in 8m16s
Build and Test / wii-u-chat (push) Successful in 8m29s
Build and Test / puyopuyo (push) Successful in 8m34s
Build and Test / splatoon (push) Successful in 8m37s
Build and Test / super-mario-maker (push) Successful in 8m49s
thanks @jonbarrow for informing us
This commit is contained in:
parent
9b2287a3f0
commit
dca2900263
1 changed files with 4 additions and 0 deletions
|
|
@ -93,6 +93,10 @@ impl TryFrom<&str> for StationUrl {
|
|||
fn try_from(value: &str) -> Result<Self, ()> {
|
||||
let (url_type, options) = value.split_at(value.find(":/").ok_or(())?);
|
||||
|
||||
if value.len() >= 1024 {
|
||||
return Err(());
|
||||
}
|
||||
|
||||
let options = &options[2..];
|
||||
|
||||
let url_type = match url_type {
|
||||
|
|
|
|||
Loading…
Reference in a new issue