Skip to content

Commit

Permalink
truncate really long homepage urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklynhma committed Dec 3, 2024
1 parent 7308cc4 commit ed32d8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/dashboards/_subject.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<%= icon_tag("link", color: :primary, class: "w-6 text-orange mr-3") %>
<p class="text-neutral-800 dark:text-white"><%=
link_to(
user.homepage_url,
truncate(user.homepage_url, length: 20),
user.homepage_url,
rel: "nofollow"
)
Expand Down
2 changes: 1 addition & 1 deletion app/views/profiles/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<p id="homepage-url">
<%=
link_to(
@user.homepage_url,
truncate(@user.homepage_url,length: 20),
@user.homepage_url,

Check warning

Code scanning / CodeQL

Stored cross-site scripting Medium

Stored cross-site scripting vulnerability due to
stored value
.
rel: "nofollow",
class: "profile__header__attribute t-link--black"
Expand Down

0 comments on commit ed32d8d

Please sign in to comment.