Skip to content

Commit

Permalink
Merge commit from fork
Browse files Browse the repository at this point in the history
* Sanitize markdown when rendering notes fields

* Revert "Sanitize markdown when rendering notes fields"

This reverts commit 373ebfbef0ce25fa58cb4e635e99f35b5e4df07c.

* Mask error message when downloading image
  • Loading branch information
SchrodingersGat authored Oct 2, 2024
1 parent 7bffa49 commit 5759b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/InvenTree/InvenTree/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,8 +907,8 @@ def validate_remote_image(self, url):

try:
self.remote_image_file = download_image_from_url(url)
except Exception as exc:
except Exception:
self.remote_image_file = None
raise ValidationError(str(exc))
raise ValidationError(_('Failed to download image from remote URL'))

return url

0 comments on commit 5759b60

Please sign in to comment.