Permalink
Browse files

Minor.

  • Loading branch information...
vlad-alexandru-ionescu committed May 3, 2016
1 parent ad6af05 commit 583b30ca958b2cb5ced80e8641cc7adc4336defd
Showing with 6 additions and 3 deletions.
  1. +1 −2 js/leveros/lib/leveros.js
  2. +5 −1 store/servicetable.go
@@ -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;
View
@@ -4,6 +4,7 @@ import (
"fmt"
"net/url"
"strconv"
"strings"
aerospike "github.com/aerospike/aerospike-client-go"
"github.com/leveros/leveros/leverutil"
@@ -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

0 comments on commit 583b30c

Please sign in to comment.