Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public class SqlInjectionLesson5a extends AssignmentEndpoint {
+ " '1'</span> always evaluates to true (The string ending literal for '1 is closed by"
+ " the query itself, so you should not inject it). So the injected query basically looks"
+ " like this: <span style=\"font-style: italic\">SELECT * FROM user_data WHERE"
+ " first_name = 'John' and last_name = '' or TRUE</span>, which will always evaluate to"
+ " true, no matter what came before it.";
+ " (first_name = 'John' and last_name = '') or (TRUE)</span>, which will always evaluate"
+ " to true, no matter what came before it.";
private final LessonDataSource dataSource;

public SqlInjectionLesson5a(LessonDataSource dataSource) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ define(['jquery',
},

markAssignmentComplete: function () {
this.curForm.reset();
$(this.curForm).siblings('.assignment-success').find('i').removeClass('hidden');
this.paginationControlView.updateCollection();
},
Expand Down Expand Up @@ -222,6 +221,8 @@ define(['jquery',
},

resetLesson: function () {
this.$el.find(form).trigger("reset");
this.$el.find(".quiz_question").removeClass('correct incorrect');
this.$el.find('.attack-feedback').hide();
this.$el.find('.attack-output').hide();
this.markAssignmentIncomplete();
Expand Down