Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications which enable malicious attackers to inject client-side script into web pages viewed by other users. An exploited cross-site scripting vulnerability can be used by attackers to bypass access controls such as the same origin policy.
One common way to solve is:
Ensure that parameters and user input are sanitized by doing the following:
# Remove < input and replace with <
# Remove > input and replace with >
# Remove ' input and replace with '
# Remove " input and replace with "
# Remove ) input and replace with )
# Remove ( input and replace with (
Monday, December 28, 2009
Wednesday, December 23, 2009
How to send JSON object using JQUERY to PHP?
After struggling for hours and googling more, finally i succeeded in commincating over Json object. I will share the code:
JS side:
var datastring=JSON.stringify(obj);
$.post('getmessage.php',{data:datastring},function(res){
alert("HIIII"+res);
},"text");
});
php side:
$data=json_decode(stripslashes($_REQUEST['data']),true);
echo $data['page'];
?>
JS side:
var datastring=JSON.stringify(obj);
$.post('getmessage.php',{data:datastring},function(res){
alert("HIIII"+res);
},"text");
});
php side:
$data=json_decode(stripslashes($_REQUEST['data']),true);
echo $data['page'];
?>
Subscribe to:
Posts (Atom)
Building Successful Products in the Maze of a Large Organization
*Image is generated using AI Large organizations offer a treasure trove of resources and stability for product development. However, navig...
-
Amazon India today has become the most visited e-commerce site in India. So, I decided to analyze the most expensive products that Amazon I...
-
The key given below is the universal serial key for Windows Xp.. It can by pass any windows xp cd and make your copy genuine. Do try it!!! ...
-
Sometimes while working on Linux, mysql.sock may get deleted by mistake due to some softwares.. in such cases any access to mysql wont be po...