Skip to content

Commit

Permalink
Update +server.js to fix url encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinga13 committed Nov 12, 2022
1 parent 43cbec0 commit ba1189c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes/api/+server.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ function compensate_url(text) {
text = text.replaceAll('%26%2334%3B','%22');
text = text.replaceAll('"','%22');
text = text.replaceAll('"','%22');
text = text.replaceAll('"','%22');
text = text.replaceAll("'",'%27');
text = text.replaceAll(''','%27');
text = text.replaceAll('&','%26');
text = text.replaceAll(' ','_');
return text;
Expand Down

0 comments on commit ba1189c

Please sign in to comment.