diff --git a/server/rest/views.py b/server/rest/views.py index e83a76f..c3b0be1 100644 --- a/server/rest/views.py +++ b/server/rest/views.py @@ -191,11 +191,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 @@ -498,11 +498,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: