Skip to content
This repository has been archived by the owner on Nov 4, 2019. It is now read-only.

Commit

Permalink
Minor.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladaionescu committed May 3, 2016
1 parent ad6af05 commit 583b30c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 1 addition & 2 deletions js/leveros/lib/leveros.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
import 'source-map-support/register';

import * as client from './client';
import * as common from 'leveros-common';
import lodash from 'lodash';

const exported = lodash.extend({}, common, client);
const exported = lodash.extend({}, client);
module.exports = exported;
6 changes: 5 additions & 1 deletion store/servicetable.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"net/url"
"strconv"
"strings"

aerospike "github.com/aerospike/aerospike-client-go"
"github.com/leveros/leveros/leverutil"
Expand Down Expand Up @@ -170,7 +171,10 @@ func serviceNameOk(service string) error {
if len(service) < 3 {
return fmt.Errorf("Service name too short")
}
if service != url.QueryEscape(service) {
if len(service) > 255 {
return fmt.Errorf("Service name too long")
}
if service != url.QueryEscape(service) || strings.Contains(service, "/") {
return fmt.Errorf("Service name not allowed")
}
return nil
Expand Down

0 comments on commit 583b30c

Please sign in to comment.