Compare commits

..

7 Commits

Author SHA1 Message Date
dgtlmoon
c442a798a3 More clenaup 2026-02-16 18:17:38 +01:00
dgtlmoon
06fd43ee24 safer cleanup 2026-02-16 17:59:40 +01:00
dgtlmoon
111d424d23 Hmm 2 2026-02-16 17:58:23 +01:00
dgtlmoon
fbe245c1d7 hmm 2026-02-16 17:47:15 +01:00
dgtlmoon
1eeed8dd5b add cleanup 2026-02-16 17:36:53 +01:00
dgtlmoon
363dcf6ff0 Remove static sleeps 2026-02-16 17:21:52 +01:00
dgtlmoon
7a3c9cb391 Security - Adding small test and fixing overzealous filename cleaner 2026-02-16 16:56:16 +01:00
3 changed files with 4 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
# Read more https://github.com/dgtlmoon/changedetection.io/wiki
# Semver means never use .01, or 00. Should be .1.
__version__ = '0.53.2'
__version__ = '0.53.1'
from changedetectionio.strtobool import strtobool
from json.decoder import JSONDecodeError

View File

@@ -304,13 +304,12 @@ html[data-darkmode="true"] .watch-tag-list.tag-{{ class_name }} {
</span>
{%- endif -%}
{%- if watch.get('restock') and watch['restock'].get('price') -%}
{%- if watch['restock']['price'] is number -%}
{%- if watch.get('restock') and watch['restock']['price'] != None -%}
{%- if watch['restock']['price'] != None -%}
<span class="restock-label price" title="{{ _('Price') }}">
{{ watch['restock']['price']|format_number_locale if watch['restock'].get('price') else '' }} {{ watch['restock'].get('currency','') }}
</span>
{%- else -%} <!-- watch['restock']['price']' is not a number, cant output it -->
{%- endif -%}
{%- endif -%}
{%- elif not watch.has_restock_info -%}
<span class="restock-label error">{{ _('No information') }}</span>
{%- endif -%}

View File

@@ -40,7 +40,6 @@ def test_favicon(client, live_server, measure_memory_usage, datastore_path):
res = client.get(url_for('static_content', group='..', filename='__init__.py'))
assert res.status_code != 200
res = client.get(url_for('static_content', group='.', filename='../__init__.py'))
assert res.status_code != 200