Skip to content

Commit

Permalink
[Hardening] Correctly manage "_resolve_object" exception as Django er…
Browse files Browse the repository at this point in the history
…ror templates
  • Loading branch information
afabiani committed Nov 12, 2020
1 parent 70296bf commit 017d885
Show file tree
Hide file tree
Showing 6 changed files with 629 additions and 441 deletions.
3 changes: 2 additions & 1 deletion geonode/base/templates/base/_resourcebase_snippet.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ <h4>{% endverbatim %}
<div class="alert alert-danger" ng-if="item.dirty_state == false && item.is_approved == true && item.is_published == false">{% trans "UNPUBLISHED" %}</div>
{% verbatim %}

<p class="abstract">{{ item.abstract | limitTo: 300 }}{{ item.abstract.length > 300 ? '...' : ''}}</p>
<div class="abstract" ng-bind-html="item.abstract | limitTo: 300"></div>
<p class="abstract">{{ item.abstract.length > 300 ? '...' : ''}}</p>
<div class="row">
<div class="col-lg-12 item-items">
<ul class="list-inline">
Expand Down
Loading

0 comments on commit 017d885

Please sign in to comment.