Skip to content

Commit bbb3310

Browse files
committed
Removed ellipses method has it driggers XSS
1 parent 878b0c3 commit bbb3310

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

app/views/home.scala.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ <h4><a href="@routes.Collections.collection(collectionInfo._1)">@collectionInfo.
439439
core: {
440440
data: {
441441
url: function(node) {
442-
console.log(node);
443442
return node.id === "#" ?
444443
"api/tree/getChildrenOfNode?nodeType=root" :
445444
"api/tree/getChildrenOfNode?nodeId="+node.id+"&nodeType="+node.data.type+"&role="+node.role+"";

app/views/spaces/newEditTemplate.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<ol class="breadcrumb">
1414
@(spaceId, spaceName) match {
1515
case (Some(s), Some(name)) => {
16-
<li> <span class="glyphicon glyphicon-hdd"></span> <a href="@routes.Spaces.getSpace(s)" title="@name"> @name</a></li>
16+
<li> <span class="glyphicon glyphicon-hdd"></span> <a href="@routes.Spaces.getSpace(s)" title="@name"> @ellipsize(name, 18)</a></li>
1717
<li> <span class="glyphicon glyphicon-edit"></span> @Html(title)</li>
1818
}
1919
case (_,_) => {

app/views/spaces/users.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="col-md-12">
99

1010
<ol class="breadcrumb">
11-
<li><span class="glyphicon glyphicon-hdd"></span><a href= "@routes.Spaces.getSpace(space.id)" title="@space.name"> @Html(ellipsize(space.name, 18))</a></li>
11+
<li><span class="glyphicon glyphicon-hdd"></span><a href= "@routes.Spaces.getSpace(space.id)" title="@space.name"> @ellipsize(space.name, 18)</a></li>
1212
<li><span class="glyphicon glyphicon-user"></span> Manage Users</li>
1313
</ol>
1414

0 commit comments

Comments
 (0)