We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c23ba commit eda07a0Copy full SHA for eda07a0
postman/src/Connection.cpp
@@ -138,6 +138,10 @@ void Connection::queueBind(std::string name) {
138
139
void Connection::queueDeclare(std::string name, std::string bindingKey,
140
bool persistence, bool durability) {
141
+
142
+ if(!std::regex_match(name, namePattern)) {
143
+ throw PostmanConnectionException("Name contains strange characters!");
144
+ }
145
if (!std::regex_match(bindingKey, bindingKeyPattern)) {
146
throw PostmanConnectionException("Binding key is wrong!");
147
}
0 commit comments