Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支払方法設定のXSS対応 #93

Merged
merged 1 commit into from
Jun 22, 2021
Merged
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 @@ -69,7 +69,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if ($("#{{ form.payment_image.vars.id }}").val() != "") {
var filename = $("#{{ form.payment_image.vars.id }}").val();
var path = '{{ app.config.image_save_urlpath }}/' + filename;
var $img = $(proto_img.replace(/__path__/g, path));
var $img = $(proto_img);
$('img', $img).attr('src', path);
$("#{{ form.payment_image.vars.id }}").val(filename);

$('#thumb').append($img);
Expand All @@ -83,7 +84,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
done: function (e, data) {
$('#progress').hide();
var path = '{{ app.config.image_temp_urlpath }}/' + data.result.filename;
var $img = $(proto_img.replace(/__path__/g, path));
var $img = $(proto_img);
$('img', $img).attr('src', path);
$("#{{ form.payment_image.vars.id }}").val(data.result.filename);

$('#thumb').append($img);
Expand Down