allow punnycode in bucket name

This commit is contained in:
trinity-1686a
2025-05-19 18:07:04 +02:00
parent a2a9e3cec4
commit 539af12d21
6 changed files with 19 additions and 18 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ pub async fn handle_create_bucket(
}
// Create the bucket!
if !is_valid_bucket_name(&bucket_name) {
if !is_valid_bucket_name(&bucket_name, garage.config.allow_punnycode) {
return Err(Error::bad_request(format!(
"{}: {}",
bucket_name, INVALID_BUCKET_NAME_MESSAGE