Skip to content

Commit

Permalink
fixed #3
Browse files Browse the repository at this point in the history
  • Loading branch information
crashdemons committed May 22, 2015
1 parent 7b6c379 commit 261b3d2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/full/js/xlate.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ function numeraldigit2dec(sdig,base){//retrieve the decimal value of a single di
//of particular interest, & and / don't get encoded, which can lead to urlencoded inputs breaking URLs.
//escape() is deprecated (why?) but it catches more of these cases
function urlencode(s){
return escape(s).replace("+","%2B");//inputs with + should be encoded as well... (escape converts spaces to %20)
return escape(s).replace(/\+/g,"%2B");//inputs with + should be encoded as well... (escape converts spaces to %20)
}
2 changes: 1 addition & 1 deletion dist/monolithic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@
//of particular interest, & and / don't get encoded, which can lead to urlencoded inputs breaking URLs.
//escape() is deprecated (why?) but it catches more of these cases
function urlencode(s){
return escape(s).replace("+","%2B");//inputs with + should be encoded as well... (escape converts spaces to %20)
return escape(s).replace(/\+/g,"%2B");//inputs with + should be encoded as well... (escape converts spaces to %20)
}


Expand Down
2 changes: 1 addition & 1 deletion dist/single/jxlate_single.js
Original file line number Diff line number Diff line change
Expand Up @@ -1643,6 +1643,6 @@ function numeraldigit2dec(sdig,base){//retrieve the decimal value of a single di
//of particular interest, & and / don't get encoded, which can lead to urlencoded inputs breaking URLs.
//escape() is deprecated (why?) but it catches more of these cases
function urlencode(s){
return escape(s).replace("+","%2B");//inputs with + should be encoded as well... (escape converts spaces to %20)
return escape(s).replace(/\+/g,"%2B");//inputs with + should be encoded as well... (escape converts spaces to %20)
}

2 changes: 1 addition & 1 deletion src/js/xlate.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ function numeraldigit2dec(sdig,base){//retrieve the decimal value of a single di
//of particular interest, & and / don't get encoded, which can lead to urlencoded inputs breaking URLs.
//escape() is deprecated (why?) but it catches more of these cases
function urlencode(s){
return escape(s).replace("+","%2B");//inputs with + should be encoded as well... (escape converts spaces to %20)
return escape(s).replace(/\+/g,"%2B");//inputs with + should be encoded as well... (escape converts spaces to %20)
}

0 comments on commit 261b3d2

Please sign in to comment.