Commit 2a3a2b76 authored by chandi's avatar chandi Committed by Matthias Larisch

fix reflected XSS in /?page=blog&sub=(add|edit)

parent ac419148
......@@ -88,7 +88,7 @@ class Utils
showLoader();
$.ajax({
url: "/xhr.php?f=activeSwitch",
data:{t:"' . $table . '",id:"' . $field_id . '",value:1},
data:{t:"' . $table . '",id:"' . (int)$field_id . '",value:1},
method:"get",
complete:function(){
hideLoader();
......@@ -99,7 +99,7 @@ class Utils
showLoader();
$.ajax({
url: "/xhr.php?f=activeSwitch",
data:{t:"' . $table . '",id:"' . $field_id . '",value:0},
data:{t:"' . $table . '",id:"' . (int)$field_id . '",value:0},
method:"get",
complete:function(){
hideLoader();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment