mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 07:36:10 -04:00
Missed tagging a commented out test for edwinwu, and cleaned up some minor problems with the filename/path validator.
PiperOrigin-RevId: 416134225
This commit is contained in:
committed by
Copybara-Service
parent
5107a030fd
commit
c77356eb92
+4
-4
@@ -132,10 +132,10 @@ void Core::SendPayload(absl::Span<const std::string> endpoint_ids,
|
||||
assert(payload.GetType() != Payload::Type::kUnknown);
|
||||
assert(!endpoint_ids.empty());
|
||||
if (payload.GetType() == Payload::Type::kFile) {
|
||||
assert(parser::Validate(payload.GetFileName(),
|
||||
parser::ILLEGAL_FILENAME_PATTERNS));
|
||||
assert(parser::Validate(payload.GetParentFolder(),
|
||||
parser::ILLEGAL_PARENT_FOLDER_PATTERNS));
|
||||
assert(!parser::HasIllegalCharacters(payload.GetFileName(),
|
||||
parser::ILLEGAL_FILENAME_PATTERNS));
|
||||
assert(!parser::HasIllegalCharacters(
|
||||
payload.GetParentFolder(), parser::ILLEGAL_PARENT_FOLDER_PATTERNS));
|
||||
}
|
||||
|
||||
router_->SendPayload(&client_, endpoint_ids, std::move(payload), callback);
|
||||
|
||||
Reference in New Issue
Block a user