Skip to content

Commit

Permalink
Merge pull request #22 from vrtadmin/master
Browse files Browse the repository at this point in the history
Migrating master updates to dev branch
  • Loading branch information
demonduck committed Dec 5, 2018
2 parents 0c254df + 3416e5a commit 41aedd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/rest/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ def metadata_add(request, md5_hash, crc32, user):
'Report issue is this is a valid '
'API').format(api)})

if not re.match('^[a-zA-Z\d_:@\?\$]+$', api):
if not re.match('^[a-zA-Z\d_:@\?\$i\.]+$', api):
return render(request, 'rest/error_json.html',
{'msg' : ('Invalid characters in API, supported'
'characters match the regex /^[a-zA-Z'
'\\d_:@\\?\\$]+$/. Report issue if'
'\\d_:@\\?\\$\\.]+$/. Report issue if'
'the submitted API valid is valid.')})

# All input has been validated
Expand Down Expand Up @@ -499,11 +499,11 @@ def metadata_scan(request, user):
'Report issue is this is a valid '
'API').format(api)})

if not re.match('^[a-zA-Z\d_:@\?\$]+$', api):
if not re.match('^[a-zA-Z\d_:@\?\$\.]+$', api):
return render(request, 'rest/error_json.html',
{'msg' : ('Invalid characters in API, supported'
'characters match the regex /^[a-zA-Z'
'\\d_:@\\?\\$]+$/. Report issue if'
'\\d_:@\\?\\$\\.]+$/. Report issue if'
'the submitted API valid is valid.')})

try:
Expand Down

0 comments on commit 41aedd7

Please sign in to comment.