|
@@ -60,7 +60,7 @@ def clip():
|
|
|
if request.method == 'POST':
|
|
|
content = validate_parameter(request, 'paste')
|
|
|
if request.params.copy != 'true':
|
|
|
- _b32 = save(content, LOCATION, root='rest/static/files')
|
|
|
+ _b32 = save(content, 'clip', LOCATION, root='rest/static/files')
|
|
|
return redirect(f'/clip?hash={_b32}')
|
|
|
|
|
|
response.content_type = 'text/html; charset=utf-8'
|
|
@@ -219,7 +219,7 @@ def goto():
|
|
|
|
|
|
if request.method == 'POST':
|
|
|
content = validate_parameter(request, 'url')
|
|
|
- _b32 = save(content, LOCATION, root='rest/static/files')
|
|
|
+ _b32 = save(content, 'goto', LOCATION, root='rest/static/files')
|
|
|
|
|
|
# validate but save content unmodified
|
|
|
_ = validate_url(content.decode('utf-8'))
|