diff --git a/services/web-ui/public/projects.html b/services/web-ui/public/projects.html index 946f7cd..7fa80dd 100644 --- a/services/web-ui/public/projects.html +++ b/services/web-ui/public/projects.html @@ -480,6 +480,9 @@ } function binCard(b) { + // Use JSON.stringify + esc so the bin name is safe in an onclick JS string + // regardless of quotes, backslashes, or other special characters it may contain. + const nameJs = esc(JSON.stringify(b.name)); return '
' + '
' + '' + @@ -487,7 +490,7 @@ '
' + '
Created ' + new Date(b.created_at).toLocaleDateString() + '
' + '
' + - '' + + '' + '' + '
' + '
';