diff --git a/webrecorder/webrecorder/maincontroller.py b/webrecorder/webrecorder/maincontroller.py index 598820a5d..f3f2a0f96 100644 --- a/webrecorder/webrecorder/maincontroller.py +++ b/webrecorder/webrecorder/maincontroller.py @@ -333,7 +333,7 @@ def is_out_of_space(context): def trunc_url_expand(value): """ Truncate querystrings, appending an ellipses, expand on click """ - trunc_value = '?...' + trunc_value = '?...' return re.sub(r'(\?.*)', trunc_value, value) def trunc_url(value): diff --git a/webrecorder/webrecorder/templates/content_error.html b/webrecorder/webrecorder/templates/content_error.html index 01228f5a5..cbd608a98 100644 --- a/webrecorder/webrecorder/templates/content_error.html +++ b/webrecorder/webrecorder/templates/content_error.html @@ -108,7 +108,7 @@

Resource not Found

{% endif %} -

The url {{ url|trunc_url_expand }} was not found in the archive.

+

The url {{ url|e|trunc_url_expand }} was not found in the archive.

{% elif status == 402 %} @@ -119,7 +119,7 @@

Resource not Found

This site could not be loaded

-

{{ url|trunc_url }}

+

{{ url|e|trunc_url }}

Please double check that this url is valid.