Skip to content

Commit e0575fd

Browse files
author
Philip Guo
committed
small patches
1 parent ab0c95d commit e0575fd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎v3/css/pytutor.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ div.ExecutionVisualizer div#editCodeLinkDiv {
147147
div.ExecutionVisualizer div#annotateLinkDiv {
148148
/*text-align: left;*/
149149
margin-top: 0px;
150-
margin-bottom: 5px;
150+
margin-bottom: 12px;
151151
/*
152152
margin-left: auto;
153153
margin-right: auto;
154154
*/
155155
}
156156

157157
div.ExecutionVisualizer div#stepAnnotationDiv {
158-
margin-bottom: 12px;
158+
margin-bottom: 8px;
159159
}
160160

161161
div.ExecutionVisualizer textarea#stepAnnotationEditor {

‎v3/js/pytutor.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ AnnotationBubble.prototype.minimizeViewer = function() {
27102710

27112711
AnnotationBubble.prototype.restoreViewer = function() {
27122712
assert(this.state == 'minimized');
2713-
$(this.hashID).qtip('option', 'content.text', this.text);
2713+
$(this.hashID).qtip('option', 'content.text', htmlspecialchars(this.text)); // help prevent HTML/JS injection attacks
27142714
this.bindViewerClickHandler();
27152715
this.state = 'view';
27162716
}

0 commit comments

Comments
 (0)