##// END OF EJS Templates
avoid injection in input prompt
Matthias BUSSONNIER -
Show More
@@ -409,7 +409,12 b' var IPython = (function (IPython) {'
409
409
410
410
411 CodeCell.input_prompt_classical = function (prompt_value, lines_number) {
411 CodeCell.input_prompt_classical = function (prompt_value, lines_number) {
412 var ns = prompt_value || " ";
412 var ns;
413 if (prompt_value == undefined) {
414 ns = " ";
415 } else {
416 ns = encodeURIComponent(prompt_value);
417 }
413 return 'In [' + ns + ']:';
418 return 'In [' + ns + ']:';
414 };
419 };
415
420
General Comments 0
You need to be logged in to leave comments. Login now