Skip to content

Commit

Permalink
Fixed typos in the code for the SERVER_SIDE.md docs
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere authored and FagnerMartinsBrack committed Mar 20, 2018
1 parent e56c990 commit 0875b1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SERVER_SIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var PHPCookies = Cookies.withConverter({
write: function (value) {
// Encode all characters according to the "encodeURIComponent" spec
return encodeURIComponent(value)
// Revert the characters that are unnecessarly encoded but are
// Revert the characters that are unnecessarily encoded but are
// allowed in a cookie value, except for the plus sign (%2B)
.replace(/%(23|24|26|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
},
Expand Down Expand Up @@ -62,7 +62,7 @@ var TomcatCookies = Cookies.withConverter({
write: function (value) {
// Encode all characters according to the "encodeURIComponent" spec
return encodeURIComponent(value)
// Revert the characters that are unnecessarly encoded but are
// Revert the characters that are unnecessarily encoded but are
// allowed in a cookie value
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent)
// Encode the parens that are interpreted incorrectly by Tomcat
Expand Down Expand Up @@ -95,7 +95,7 @@ var JBossCookies = Cookies.withConverter({
write: function (value) {
// Encode all characters according to the "encodeURIComponent" spec
return encodeURIComponent(value)
// Revert the characters that are unnecessarly encoded but are
// Revert the characters that are unnecessarily encoded but are
// allowed in a cookie value
.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent)
// Encode again the characters that are not allowed in JBoss 7.1.1, like "[" and "]":
Expand Down

0 comments on commit 0875b1c

Please sign in to comment.