Skip to content

Commit e397659

Browse files
authored
Merge pull request #31 from dusantasioso/master
encodeURIComponent data
2 parents d3d846e + fd0a246 commit e397659

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/QuickTranslateBundle/Resources/public/js/utilities/createDeeplApiUrl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ function createDeeplApiUrl(key, type, data, langFrom = null, langTo, autoDetect
5353
if(glossaryId) {
5454
glossaryPart = '&glossary_id=' + glossaryId;
5555
}
56+
data = encodeURIComponent(data)
5657

5758
if (autoDetect) {
5859
return url + '/v2/translate?auth_key=' + key + '&text=' + data + '&target_lang=' + langTo + '&split_sentences=nonewlines&tag_handling=xml' + glossaryPart;

0 commit comments

Comments
 (0)