%
を %25
にする感じ。
%2D
-> %252D
%2E
-> %252E
NG
%2D%2E
が -.
に変換されて Request されてしまう。
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title> - . </title>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script type="text/javascript">
$(function(){
$.ajax({
type: 'post',
url: '/hahaha/%2D%2E',
data: {
},
success: function(data){
console.log(data);
}
});
});
</script>
</head>
<body>
hoge
</body>
</html>
OK
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title> - . </title>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script type="text/javascript">
$(function(){
$.ajax({
type: 'post',
url: '/hahaha/%252D%252E',
data: {
},
success: function(data){
console.log(data);
}
});
});
</script>
</head>
<body>
hoge
</body>
</html>