From 1e96afa69b53bc584c47441d86d9e59083159d05 Mon Sep 17 00:00:00 2001 From: mansourm Date: Mon, 3 Dec 2018 06:18:18 +0100 Subject: [PATCH] changed the regex to match the naming of functions of radare2 --- server/rest/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: