Browse Source

Allow workernames with either . or _ separators

master
Con Kolivas 11 years ago
parent
commit
6d99f89416
  1. 5
      src/stratifier.c

5
src/stratifier.c

@ -1220,10 +1220,11 @@ static json_t *parse_subscribe(int client_id, json_t *params_val)
* user or creates a new one. */
static user_instance_t *authorise_user(const char *workername)
{
char *fullname = strdupa(workername);
char *username = strsep(&fullname, ".");
char *username = strdupa(workername);
user_instance_t *instance;
username = strsep(&username, ".");
username = strsep(&username, "_");
if (strlen(username) > 127)
username[127] = '\0';

Loading…
Cancel
Save