PageRenderTime 282ms queryTime 69ms sortTime 14ms getByIdsTime 100ms findMatchingLines 33ms

100+ results results for 'encodeURIComponent repo:nvquanghuy/teammatestesting' (282 ms)

Not the results you expected?
cookies_spec.js https://gitlab.com/varunsonavne/node-hello | JavaScript | 305 lines
                    
30  function encode(str) {
                    
31    str = str.toString().replace(/[\x00-\x1F\x7F]/g, encodeURIComponent);
                    
32    return str.replace(/[\s\"\,;\\%]/g, encodeURIComponent);
                    
299        cookieObj[FORBIDDEN_COOKIE_NAME].should.be.exactly(
                    
300          encodeURIComponent(FORBIDDEN_COOKIE_VALUE));
                    
301        done();
                    
                
index.html https://gitlab.com/ratpoopmachine/3kh0-github-io | HTML | 263 lines
                    
20          var ref = parts[parts.length - 2] == "co" || parts[parts.length - 2] == "com" ? parts.slice(-3).join(".") : parts.slice(-2).join(".");
                    
21          document.location.href = document.location.href.replace("http:", "https:") + "?ref=" + encodeURIComponent(ref);
                    
22        } else document.location.href = document.location.href.replace("http:", "https:");
                    
                
xmldom.js https://github.com/discoverygarden/ir_citation.git | JavaScript | 450 lines
                    
72				}
                    
73				xmldata.open('GET', 'data:' + contentType + ';charset=utf-8,' + encodeURIComponent(str), false);
                    
74				if(xmldata.overrideMimeType) {
                    
                
tc.js https://github.com/koto/blog-kotowicz-net-examples.git | JavaScript | 389 lines
                    
158			}, U = function() {
                    
159				var a = T(h.cookie, "tracertraffic"), b = encodeURIComponent(L(S())), c = h.location.hash;
                    
160				c = /tynt=/.test(c) ? c.match(/tynt=?([^?&$#]*)/)[1] : false;
                    
164						+ (h.referrer ? "&r="
                    
165								+ encodeURIComponent(L(h.referrer)) : "");
                    
166				a = f + "&t=" + encodeURIComponent(K);
                    
276											n,
                    
277											encodeURIComponent(o).replace(
                    
278													/\'/g, "%27") ]);
                    
285												j,
                    
286												encodeURIComponent(u).replace(
                    
287														/\'/g, "%27") ]);
                    
                
util.js.in https://bitbucket.org/portix/dwb.git | Autoconf | 365 lines
                    
158            {
                    
159                return unescape(encodeURIComponent(string));
                    
160            }
                    
                
return_form.tpl https://bitbucket.org/sandeepbhaskar/inspiredliving.git | Smarty Template | 236 lines
                    
164		$.ajax({
                    
165			url: 'index.php?route=sale/customer/autocomplete&token=<?php echo $token; ?>&filter_name=' +  encodeURIComponent(request.term),
                    
166			dataType: 'json',
                    
202		$.ajax({
                    
203			url: 'index.php?route=catalog/product/autocomplete&token=<?php echo $token; ?>&filter_name=' +  encodeURIComponent(request.term),
                    
204			dataType: 'json',
                    
                
database.html https://github.com/anandology/couchdb.git | HTML | 263 lines
                    
42        if (viewPath != "_temp_view" && viewPath != "_design_docs") {
                    
43          $("h1 a.raw").attr("href", "/" + encodeURIComponent(page.db.name) +
                    
44            "/" + viewPath);
                    
96          if (!viewName) $.futon.storage.del("view");
                    
97          location.href = "?" + encodeURIComponent(page.db.name) +
                    
98            (viewName ? "/" + viewName  : "");
                    
                
gallery-io-multiresponse-debug.js https://github.com/nonano/yui3-gallery.git | JavaScript | 372 lines
                    
323
                    
324    var callback_value = encodeURIComponent('window.parent.YUI.Env.io_multi_response_callback[' + o.id + ']');
                    
325    var callback_arg   = 'callback=' + callback_value;
                    
                
response.js https://github.com/storminwalker/express.git | JavaScript | 454 lines
                    
205  // transfer
                    
206  options.path = encodeURIComponent(path);
                    
207  send(this.req, this, next, options);
                    
                
plugin.js https://gitlab.com/juanito.abelo/nlmobile | JavaScript | 427 lines
                    
175			tinymce.util.XHR.send({
                    
176				url: url + encodeURIComponent( text ) + '&key=' + editor.getParam( 'atd_rpc_id', '12345678' ),
                    
177				content_type: 'text/xml',
                    
                
main.js https://github.com/9kopb/browserid.git | JavaScript | 341 lines
                    
68      $.ajax({
                    
69        url: '/wsapi/create_user?username=' + encodeURIComponent(username) + '&pass=' + encodeURIComponent(pass),
                    
70        success: function(result) {
                    
80                $.ajax({
                    
81                  url: '/wsapi/add_key?pubkey=' + encodeURIComponent(publicKey),
                    
82                  success: function() {
                    
148              $.ajax({
                    
149                url: '/wsapi/username_available?username=' + encodeURIComponent(checkingNow),
                    
150                success: function(data, textStatus, jqXHR) {
                    
223      $.ajax({
                    
224        url: '/wsapi/authenticate_user?username=' + encodeURIComponent(email) + '&pass=' + encodeURIComponent(pass),
                    
225        success: function(status, textStatus, jqXHR) {
                    
231              $.ajax({
                    
232                url: '/wsapi/add_key?pubkey=' + encodeURIComponent(publicKey),
                    
233                success: function() {
                    
                
gravatar.js https://github.com/jakubkinst/Course-Manager.git | JavaScript | 305 lines
                    
104			} else {
                    
105				var tmp = encodeURIComponent(str.charAt(i)).substr(1).split('%')
                    
106				for (var j = 0; j < tmp.length; j++) {
                    
                
angular-loader.js https://gitlab.com/alidz1982/cdnjs | JavaScript | 420 lines
                    
75      message = message + (i == 2 ? '?' : '&') + 'p' + (i-2) + '=' +
                    
76        encodeURIComponent(stringify(arguments[i]));
                    
77    }
                    
                
view.map.js https://gitlab.com/crazybutterfly815/netentionjs | JavaScript | 409 lines
                    
1function getProxyURL(u) {
                    
2    return '/http/' + encodeURIComponent(u);
                    
3}
                    
                
socialite.min.js https://bitbucket.org/Deependra-Patel/demo.git | JavaScript | 78 lines
                    
9window.Socialite=(function(window,document,undefined)
                    
10{'use strict';var uid=0,instances=[],networks={},widgets={},rstate=/^($|loaded|complete)/,euc=window.encodeURIComponent;var socialite={settings:{},trim:function(str)
                    
11{return str.trim?str.trim():str.replace(/^\s+|\s+$/g,'');},hasClass:function(el,cn)
                    
                
sandbox.js.uncompressed.js https://bitbucket.org/rosudrag/tfgm-bus-whereabouts.git | JavaScript | 347 lines
                    
59		var safeCalls = ["isNaN","isFinite","parseInt","parseFloat","escape","unescape",
                    
60										"encodeURI","encodeURIComponent","decodeURI","decodeURIComponent",
                    
61										"alert","confirm","prompt", // some people may not want to allow these to be called, but they don't break capability-limiting
                    
                
FastJSON.class.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 368 lines
                    
13 * To don't have problems with other chars try to use utf8_encode($json_encoded_string).
                    
14 * To recieve correctly JSON strings from JavaScript use encodeURIComponent then
                    
15 * use, if is necessary, utef8_decode before JS to PHP convertion.
                    
                
axurerp_pagespecificscript.js https://github.com/customink-experience/customink-experience.github.com.git | JavaScript | 383 lines
                    
39function GetQuerystring() {
                    
40    return '#OnLoadVariable=' + encodeURIComponent($OnLoadVariable) + '&tabSelected=' + encodeURIComponent($tabSelected) + '&pathName=' + encodeURIComponent($pathName) + '&IIPrice=' + encodeURIComponent($IIPrice) + '&VAtax=' + encodeURIComponent($VAtax) + '&CSUM=1';
                    
41}
                    
                
String.cs https://github.com/kripa82/scriptsharp.git | C# | 412 lines
                    
142        /// <returns>The encoded string.</returns>
                    
143        [ScriptName("encodeURIComponent")]
                    
144        public string EncodeUriComponent() {
                    
                
api.js https://gitlab.com/artofhuman/gitlab-ce | JavaScript | 326 lines
                    
101  project(projectPath) {
                    
102    const url = Api.buildUrl(Api.projectPath).replace(':id', encodeURIComponent(projectPath));
                    
103
                    
109    const url = Api.buildUrl(Api.projectMergeRequestPath)
                    
110      .replace(':id', encodeURIComponent(projectPath))
                    
111      .replace(':mrid', mergeRequestId);
                    
117    const url = Api.buildUrl(Api.projectMergeRequestChangesPath)
                    
118      .replace(':id', encodeURIComponent(projectPath))
                    
119      .replace(':mrid', mergeRequestId);
                    
125    const url = Api.buildUrl(Api.projectMergeRequestVersionsPath)
                    
126      .replace(':id', encodeURIComponent(projectPath))
                    
127      .replace(':mrid', mergeRequestId);
                    
134      ':id',
                    
135      encodeURIComponent(projectPath),
                    
136    );
                    
                
debug.js https://github.com/rudyvallejos/GestionItems.git | JavaScript | 394 lines
                    
47function showSourceCode(location) {
                    
48    var url = debug_base + '/source_code?location=' + encodeURIComponent(location);
                    
49    var source = document.getElementById('source_data');
                    
251                }
                    
252                newData += i + '=' + encodeURIComponent(data[i]);
                    
253            }
                    
                
common.js https://gitlab.com/albert925/lading-ach | JavaScript | 456 lines
                    
158 * @uses    collation_connection
                    
159 * @uses    encodeURIComponent()
                    
160 * @param    string    url    name of page to be loaded
                    
172        '&token=' + encodeURIComponent(token) +
                    
173        '&db=' + encodeURIComponent(db) +
                    
174        '&table=' + encodeURIComponent(table) +
                    
175        '&lang=' + encodeURIComponent(lang) +
                    
176        '&collation_connection=' + encodeURIComponent(collation_connection),
                    
177        'main');
                    
192function refreshNavigation() {
                    
193    goTo('navigation.php?server=' + encodeURIComponent(server) +
                    
194        '&token=' + encodeURIComponent(token)  +
                    
361    if ( ! url ) {
                    
362        url = 'querywindow.php?' + common_query + '&db=' + encodeURIComponent(db) + '&table=' + encodeURIComponent(table);
                    
363    }
                    
                
AjaxObservable.js https://gitlab.com/nguyenthehiep3232/marius | JavaScript | 359 lines
                    
180            case 'application/x-www-form-urlencoded':
                    
181                return Object.keys(body).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(body[key])}`).join('&');
                    
182            case 'application/json':
                    
                
connection-min.js https://gitlab.com/essere.lab.public/qualitas.class-corpus | JavaScript | 130 lines
                    
8YAHOO.util.Connect={_msxml_progid:['MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','Microsoft.XMLHTTP'],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:'application/x-www-form-urlencoded; charset=UTF-8',_use_default_xhr_header:true,_default_xhr_header:'XMLHttpRequest',_has_default_headers:true,_default_headers:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function()
                    
9{if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,'click',function(e){var obj=YAHOO.util.Event.getTarget(e);if(obj.type=='submit'){YAHOO.util.Connect._submitElementValue=encodeURIComponent(obj.name)+"="+encodeURIComponent(obj.value);}});return true;}
                    
10return false;})(),startEvent:new YAHOO.util.CustomEvent('start'),completeEvent:new YAHOO.util.CustomEvent('complete'),successEvent:new YAHOO.util.CustomEvent('success'),failureEvent:new YAHOO.util.CustomEvent('failure'),uploadEvent:new YAHOO.util.CustomEvent('upload'),abortEvent:new YAHOO.util.CustomEvent('abort'),_customEvents:{onStart:['startEvent','start'],onComplete:['completeEvent','complete'],onSuccess:['successEvent','success'],onFailure:['failureEvent','failure'],onUpload:['uploadEvent','upload'],onAbort:['abortEvent','abort']},setProgId:function(id)
                    
81{switch(oElement.type)
                    
82{case'select-one':case'select-multiple':for(var j=0;j<oElement.options.length;j++){if(oElement.options[j].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text)+'&';}
                    
83else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text)+'&';}}}
                    
83else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text)+'&';}}}
                    
84break;case'radio':case'checkbox':if(oElement.checked){this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';}
                    
85break;case'file':case undefined:case'reset':case'button':break;case'submit':if(hasSubmit===false){if(this._hasSubmitListener&&this._submitElementValue){this._sFormData+=this._submitElementValue+'&';}
                    
85break;case'file':case undefined:case'reset':case'button':break;case'submit':if(hasSubmit===false){if(this._hasSubmitListener&&this._submitElementValue){this._sFormData+=this._submitElementValue+'&';}
                    
86else{this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';}
                    
87hasSubmit=true;}
                    
87hasSubmit=true;}
                    
88break;default:this._sFormData+=encodeURIComponent(oName)+'='+encodeURIComponent(oValue)+'&';}}}
                    
89this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(secureUri){var frameId='yuiIO'+this._transaction_id;var io;if(window.ActiveXObject){io=document.createElement('<iframe id="'+frameId+'" name="'+frameId+'" />');if(typeof secureUri=='boolean'){io.src='javascript:false';}
                    
                
helper.js https://gitlab.com/devtoannh/cafe | JavaScript | 411 lines
                    
116    for (var i = 0; i < dirs.length; i++)
                    
117        escapePath += encodeURIComponent(dirs[i]) + '/';
                    
118
                    
                
optionsBox.js https://gitlab.com/x33n/ImpressPages | JavaScript | 402 lines
                    
93            if (elem.name !== 'a' && elem.name !== 'aa' && elem.name !== 'm' && elem.name !== 'g') {
                    
94                data = data + '&ipDesign[pCfg][' + elem.name + ']=' + encodeURIComponent(elem.value);
                    
95            }
                    
100            //for theme preview in market
                    
101            data = data + '&theme=' + encodeURIComponent(getParameterByName('theme'));
                    
102        }
                    
                
server.js https://gitlab.com/deadgood/sportas | JavaScript | 292 lines
                    
59        utf8encode = function (str) {
                    
60            return unescape(encodeURIComponent(str));
                    
61        },
                    
95                                /%s/,
                    
96                                encodeURIComponent(JSON.stringify(result))
                    
97                            )
                    
178                    '//' + req.headers.host + options.uploadUrl;
                    
179            this.url = this.deleteUrl = baseUrl + encodeURIComponent(this.name);
                    
180            Object.keys(options.imageVersions).forEach(function (version) {
                    
184                    that[version + 'Url'] = baseUrl + version + '/' +
                    
185                        encodeURIComponent(that.name);
                    
186                }
                    
                
comments.js https://bitbucket.org/jaredstanley/facebook-js-sdk.git | JavaScript | 120 lines
                    
64      if (index > 0) {
                    
65        attr.xid = encodeURIComponent(document.URL.substring(0, index));
                    
66      }
                    
67      else {
                    
68        attr.xid = encodeURIComponent(document.URL);
                    
69      }
                    
                
swagger-oauth.js https://gitlab.com/CORP-RESELLER/kubernetes | JavaScript | 275 lines
                    
143
                    
144    url += '&redirect_uri=' + encodeURIComponent(redirectUrl);
                    
145    url += '&realm=' + encodeURIComponent(realm);
                    
145    url += '&realm=' + encodeURIComponent(realm);
                    
146    url += '&client_id=' + encodeURIComponent(clientId);
                    
147    url += '&scope=' + encodeURIComponent(scopes);
                    
                
angular-loader.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 405 lines
                    
61      message = message + (i == 2 ? '?' : '&') + 'p' + (i - 2) + '=' +
                    
62        encodeURIComponent(toDebugString(arguments[i]));
                    
63    }
                    
                
SF_submit.js https://github.com/ChuguluGames/mediawiki-svn.git | JavaScript | 150 lines
                    
115		if (wgAction == "formedit") {
                    
116			params += "&target=" + encodeURIComponent( wgPageName );
                    
117		} else if ( wgCanonicalSpecialPageName == "FormEdit") {
                    
133			if (stop >= 0) {
                    
134				params += "&form=" + encodeURIComponent( url.substring(start, stop) );
                    
135
                    
136				start = stop + 1;
                    
137				params += "&target=" + encodeURIComponent( url.substr(start) );
                    
138
                    
139			} else {
                    
140				params += "&form=" + encodeURIComponent( url.substr(start) );
                    
141			}
                    
                
script.js https://gitlab.com/ricardosanchez/prueba | JavaScript | 350 lines
                    
56				url = url.replace('http://', '');
                    
57				url = 'index.php?rl_qp=1&url=' + encodeURIComponent(url);
                    
58				if (timeout) {
                    
                
corsclient.js https://gitlab.com/Blueprint-Marketing/test-cors.org | JavaScript | 659 lines
                    
240    }
                    
241    queryArray.push(encodeURIComponent(key));
                    
242    queryArray.push('=');
                    
242    queryArray.push('=');
                    
243    queryArray.push(encodeURIComponent(val));
                    
244  }
                    
                
jarvis.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 131 lines
                    
119			// if you happen to find a TTS API that sounds like jarvis, inform me ASAP
                    
120			document.getElementById("_jarvis").src = 'http://api.voicerss.org/?key='+this.voicerssKey+'&language='+this.lang+'&src='+encodeURIComponent(t);
                    
121		}
                    
                
io-form-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 88 lines
                    
22            var f = (typeof o.id === 'object') ? o.id : Y.config.doc.getElementById(o.id),
                    
23            eUC = encodeURIComponent,
                    
24            data = [],
                    
36                if ((useDf) ? n : (n && !d)) {
                    
37                    n = encodeURIComponent(n) + '=';
                    
38                    v = encodeURIComponent(e.value);
                    
                
nav.js https://bitbucket.org/mdavid/aspnetwebstack.git | JavaScript | 317 lines
                    
235        if (formattedUrl !== '?') formattedUrl += '&';
                    
236        formattedUrl += key + '=' + encodeURIComponent(value);
                    
237      }
                    
                
web_socket.js https://github.com/sigmonky/LivingRoom.git | JavaScript | 376 lines
                    
54    }
                    
55    // We use encodeURIComponent() here, because FABridge doesn't work if
                    
56    // the argument includes some characters. We don't use escape() here
                    
58    // https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Functions#escape_and_unescape_Functions
                    
59    // But it looks decodeURIComponent(encodeURIComponent(s)) doesn't
                    
60    // preserve all Unicode characters either e.g. "\uffff" in Firefox.
                    
60    // preserve all Unicode characters either e.g. "\uffff" in Firefox.
                    
61    var result = this.__flash.send(encodeURIComponent(data));
                    
62    if (result < 0) { // success
                    
                
jquery.history.js https://github.com/chrux/chrux.github.com.git | JavaScript | 113 lines
                    
17        put: function(hash, win) {
                    
18            (win || window).location.hash = encodeURIComponent(hash);
                    
19        },
                    
                
api.js https://gitlab.com/innerwhisper/gitlab-ce | JavaScript | 384 lines
                    
49  groupMembers(id) {
                    
50    const url = Api.buildUrl(this.groupMembersPath).replace(':id', encodeURIComponent(id));
                    
51
                    
112  projectUsers(projectPath, query = '', options = {}) {
                    
113    const url = Api.buildUrl(this.projectUsersPath).replace(':id', encodeURIComponent(projectPath));
                    
114
                    
127  project(projectPath) {
                    
128    const url = Api.buildUrl(Api.projectPath).replace(':id', encodeURIComponent(projectPath));
                    
129
                    
141      ':id',
                    
142      encodeURIComponent(projectPath),
                    
143    );
                    
157      ':id',
                    
158      encodeURIComponent(projectPath),
                    
159    );
                    
                
2012-14-189.html https://gitlab.com/bernagg/TI | HTML | 173 lines
                    
42
                    
43<form id="search-form" method="get" action="http://socialnetworks.on-myweb.com/" onsubmit="location.href=this.action+'search/'+encodeURIComponent(this.s.value).replace(/%20/g, '+'); return false;">
                    
44	<input type="text" id="s" name="s" value="" size="15" />
                    
                
edit_template.jsp https://github.com/lululiferay/liferay-portal.git | JavaServer Pages | 356 lines
                    
101	<aui:input name="templateId" type="hidden" value="<%= templateId %>" />
                    
102	<aui:input name="xslContent" type="hidden" value="<%= JS.encodeURIComponent(xsl) %>" />
                    
103	<aui:input disabled="<%= true %>" name="editorContentInput" type="hidden" value="<%= JS.encodeURIComponent(editorContent) %>" />
                    
                
js.cookie.js https://github.com/cuckoobox/cuckoo.git | JavaScript | 151 lines
                    
61				if (!converter.write) {
                    
62					value = encodeURIComponent(String(value))
                    
63						.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
                    
67
                    
68				key = encodeURIComponent(String(key));
                    
69				key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
                    
                
url_tree.js https://gitlab.com/adriancarayol/django-angular2 | JavaScript | 446 lines
                    
190        var fragment = tree.fragment !== null && tree.fragment !== undefined ?
                    
191            "#" + encodeURIComponent(tree.fragment) :
                    
192            '';
                    
235function encode(s) {
                    
236    return encodeURIComponent(s);
                    
237}
                    
                
main.jsx https://gitlab.com/andyblaesus/wy-index | JSX | 556 lines
                    
101  shareToWeibo: function () {
                    
102    var title = encodeURIComponent(wyQuiz.shareRecommendation),
                    
103        url = encodeURIComponent(wyQuiz.url);
                    
108  shareToFacebook: function () {
                    
109    var description = encodeURIComponent(wyQuiz.shareRecommendation),
                    
110        url = encodeURIComponent(wyQuiz.url),
                    
110        url = encodeURIComponent(wyQuiz.url),
                    
111        title = encodeURIComponent(wyQuiz.title),
                    
112        imageURL = encodeURIComponent(wyQuiz.url + './images/cover-share.png');
                    
124  shareToTwitter: function() {
                    
125    var title=encodeURIComponent(wyQuiz.shareRecommendation),
                    
126        url=encodeURIComponent(wyQuiz.url);
                    
                
RestUtils.java https://bitbucket.org/dkartaschew/elasticsearch.git | Java | 219 lines
                    
120     * This is the encoding used by JavaScript functions {@code encodeURI}
                    
121     * and {@code encodeURIComponent}, but not {@code escape}.  For example
                    
122     * in this encoding, &eacute; (in Unicode {@code U+00E9} or in UTF-8
                    
                
back.js.uncompressed.js https://gitlab.com/Mirros/cdnjs | JavaScript | 397 lines
                    
21		if(!h){ h = ""; }
                    
22		window.location.hash = encodeURIComponent(h);
                    
23		historyCounter = history.length;
                    
                
uri.js https://gitlab.com/MichelZuniga/node | JavaScript | 392 lines
                    
388      "encodeURI", URIEncode,
                    
389      "encodeURIComponent", URIEncodeComponent
                    
390  ));
                    
                
test-selection.js https://bitbucket.org/avikpal/mozilla-central.git | JavaScript | 458 lines
                    
14
                    
15const URL = "data:text/html;charset=utf-8," + encodeURIComponent(HTML);
                    
16
                    
17const FRAME_HTML = "<iframe src='" + URL + "'><iframe>";
                    
18const FRAME_URL = "data:text/html;charset=utf-8," + encodeURIComponent(FRAME_HTML);
                    
19
                    
                
request.js https://bitbucket.org/paulscott56/node.git | JavaScript | 277 lines
                    
53      if (p.match(/^org.couchdb.user/)) {
                    
54        return p.replace(/\//g, encodeURIComponent("/"))
                    
55      }
                    
55      }
                    
56      return encodeURIComponent(p)
                    
57    }).join("/")
                    
                
nsAddonRepository.js https://github.com/aptana/xulrunner.git | JavaScript | 349 lines
                    
88    var url = prefs.getCharPref(PREF_GETADDONS_BROWSESEARCHRESULTS);
                    
89    url = url.replace(/%TERMS%/g, encodeURIComponent(aSearchTerms));
                    
90    return urlf.formatURL(url);
                    
141    // We double encode due to bug 427155
                    
142    uri = uri.replace(/%TERMS%/g, encodeURIComponent(encodeURIComponent(aSearchTerms)));
                    
143    uri = urlf.formatURL(uri);
                    
                
web_socket.js https://gitlab.com/Mirros/cdnjs | JavaScript | 391 lines
                    
79    }
                    
80    // We use encodeURIComponent() here, because FABridge doesn't work if
                    
81    // the argument includes some characters. We don't use escape() here
                    
83    // https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Functions#escape_and_unescape_Functions
                    
84    // But it looks decodeURIComponent(encodeURIComponent(s)) doesn't
                    
85    // preserve all Unicode characters either e.g. "\uffff" in Firefox.
                    
87    // additional testing.
                    
88    var result = WebSocket.__flash.send(this.__id, encodeURIComponent(data));
                    
89    if (result < 0) { // success
                    
                
jquery.strings.js https://github.com/jthamrick/devbox.git | JavaScript | 291 lines
                    
186        UTF8encode: function(s) { 
                    
187            return unescape(encodeURIComponent(s)); 
                    
188        },
                    
                
error.js https://gitlab.com/Blueprint-Marketing/amphtml | JavaScript | 186 lines
                    
150  let url = 'https://amp-error-reporting.appspot.com/r' +
                    
151      '?v=' + encodeURIComponent('$internalRuntimeVersion$') +
                    
152      '&m=' + encodeURIComponent(
                    
163  if (window.location.ancestorOrigins && window.location.ancestorOrigins[0]) {
                    
164    url += '&or=' + encodeURIComponent(window.location.ancestorOrigins[0]);
                    
165  }
                    
166  if (window.viewerState) {
                    
167    url += '&vs=' + encodeURIComponent(window.viewerState);
                    
168  }
                    
173      : 'u';  // Unknown
                    
174    url += '&el=' + encodeURIComponent(tagName) +
                    
175        '&s=' + encodeURIComponent(error.stack || '');
                    
177  } else {
                    
178    url += '&f=' + encodeURIComponent(filename) +
                    
179        '&l=' + encodeURIComponent(line) +
                    
                
summernote-ext-specialchars.js https://gitlab.com/x33n/summernote | JavaScript | 315 lines
                    
90              $node.attr('title', text);
                    
91              $node.attr('data-value', encodeURIComponent(text));
                    
92              $node.css({
                    
                
common.js https://gitlab.com/reclamare/mao | JavaScript | 526 lines
                    
101		if (value) {
                    
102			url += '&search=' + encodeURIComponent(value);
                    
103		}
                    
                
HTMLEditor.js https://bitbucket.org/kudutest2/kenticogit.git | JavaScript | 334 lines
                    
77    for (var i in obj) {
                    
78        obj[i] = encodeURIComponent(obj[i]);
                    
79    }
                    
                
jquery.cookie.js https://gitlab.com/liyue/yii-fis-bk-fe | JavaScript | 288 lines
                    
25    var COOKIENAME = "HCD", // Current cookie name
                    
26        ENCODE = encodeURIComponent,
                    
27        DECODE = decodeURIComponent,
                    
                
profile-intro.js https://gitlab.com/gregtyka/KhanLatest | JavaScript | 260 lines
                    
29                            var postLoginUrl = "/postlogin?continue=" +
                    
30                                encodeURIComponent(window.location.href);
                    
31                            window.location.href = "/login?continue=" +
                    
31                            window.location.href = "/login?continue=" +
                    
32                                encodeURIComponent(postLoginUrl);
                    
33                        },
                    
                
script.js https://bitbucket.org/miya0001/wp-typing.git | JavaScript | 132 lines
                    
124    var url = 'https://twitter.com/intent/tweet?url=http://firegoby.jp/typing/&text=';
                    
125    var text = encodeURIComponent("My score is "+wpm+' and Accuracy is '+acc+'% #wptyping');
                    
126    $('#tweet').attr('href', url+text);
                    
                
dust-core.js https://gitlab.com/Mirros/cdnjs | JavaScript | 577 lines
                    
108  u: encodeURI,
                    
109  uc: encodeURIComponent
                    
110}
                    
                
plugin.js https://github.com/dphan/OpenPublic.git | JavaScript | 501 lines
                    
131			for ( var i in params )
                    
132				queryString.push( i + "=" + encodeURIComponent( params[ i ] ) );
                    
133		}
                    
                
githugs.js https://github.com/jakemcgraw/githugs-public.git | JavaScript | 121 lines
                    
63      for (var key in data) {
                    
64        body.push(key + '=' + encodeURIComponent(data[key]));
                    
65      }
                    
74    for (var key in data) {
                    
75      params.push(key + '=' + encodeURIComponent(data[key]));
                    
76    }
                    
                
edit_template.jsp https://github.com/l15k4/liferay-portal.git | JavaServer Pages | 336 lines
                    
95	<aui:input name="templateId" type="hidden" value="<%= templateId %>" />
                    
96	<aui:input name="xslContent" type="hidden" value="<%= JS.encodeURIComponent(xsl) %>" />
                    
97	<aui:input disabled="true" name="editorContentInput" type="hidden" value="<%= JS.encodeURIComponent(editorContent) %>" />
                    
                
dust-core-1.2.3.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 622 lines
                    
126  u: encodeURI,
                    
127  uc: encodeURIComponent,
                    
128  js: function(value) { if (!JSON) { return value; } return JSON.stringify(value); },
                    
                
jasmine-html.js https://gitlab.com/Mirros/cdnjs | JavaScript | 190 lines
                    
59    var suiteDiv = this.createDom('div', { className: 'suite' },
                    
60        this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, "run"),
                    
61        this.createDom('a', { className: 'description', href: '?spec=' + encodeURIComponent(suite.getFullName()) }, suite.description));
                    
131  var specDiv = this.createDom('div', { className: 'spec '  + status },
                    
132      this.createDom('a', { className: 'run_spec', href: '?spec=' + encodeURIComponent(spec.getFullName()) }, "run"),
                    
133      this.createDom('a', {
                    
134        className: 'description',
                    
135        href: '?spec=' + encodeURIComponent(spec.getFullName()),
                    
136        title: spec.getFullName()
                    
                
Serializer.js https://github.com/Wkasel/qooxdoo.git | JavaScript | 344 lines
                    
90      if (value instanceof qx.core.Object && qxSerializer != null) {
                    
91        var encValue = encodeURIComponent(qxSerializer(value));
                    
92        if (encValue === undefined) {
                    
92        if (encValue === undefined) {
                    
93          var encValue = encodeURIComponent(value);
                    
94        }
                    
95      } else {
                    
96        var encValue = encodeURIComponent(value);
                    
97      }
                    
97      }
                    
98      return encodeURIComponent(name) + "=" + encValue + "&";
                    
99    },
                    
                
autocomplete-sources.js https://gitlab.com/Mirros/cdnjs | JavaScript | 394 lines
                    
65                        maxResults: maxResults > 0 ? maxResults : 1000,
                    
66                        query     : encodeURIComponent(query)
                    
67                    });
                    
357            maxResults: maxResults > 0 ? maxResults : 1000,
                    
358            query     : encodeURIComponent(query)
                    
359        });
                    
                
server.js https://github.com/ehd/streamie.git | JavaScript | 360 lines
                    
83
                    
84        var transferURL = "http://"+host+"/transfer?token="+encodeURIComponent(temp);
                    
85        console.log("Transfer via "+transferURL)
                    
                
check_injected_script_source.py https://gitlab.com/jbergstroem/node.js | Python | 88 lines
                    
55        "eval", "uneval", "isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent",
                    
56        "encodeURI", "encodeURIComponent", "escape", "unescape", "Map", "Set"
                    
57    ])
                    
                
rlClient.js https://gitlab.com/varunkothamachu/seldon-server | JavaScript | 363 lines
                    
120
                    
121        return encodeURIComponent(page_id);
                    
122    }
                    
138            (rectag ? ("&rectag=" + rectag) : "") +
                    
139            (source ? ("&source=" + encodeURIComponent(normalise(source))) : "") +
                    
140            (position ? ("&pos=" + position) : "");
                    
                
socialite.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 457 lines
                    
25		sto = window.setTimeout,
                    
26		euc = encodeURIComponent,
                    
27		gcn = typeof document.getElementsByClassName === 'function';
                    
                
flash-embed.js https://bitbucket.org/cng1985/kissy.git | JavaScript | 364 lines
                    
23		OP = Object.prototype,
                    
24        encode = encodeURIComponent,
                    
25		
                    
                
Misc.php https://gitlab.com/endomorphosis/falkenstein | PHP | 401 lines
                    
47    /**
                    
48     * Simulate the encodeURIComponent() function available in JavaScript
                    
49     * @static
                    
53     */
                    
54    function encodeURIComponent($str)
                    
55    {
                    
                
media.popups.js https://gitlab.com/leoplanxxi/dr7-web-buap-2016 | JavaScript | 446 lines
                    
189  if (typeof defaults.src === 'string' ) {
                    
190    defaults.src = defaults.src.replace('-media_id-', mediaFile.fid) + '&fields=' + encodeURIComponent(JSON.stringify(mediaFile.fields));
                    
191  }
                    
195    defaults.src.unshift(src);
                    
196    defaults.src = src.replace('-media_id-', mediaFile.fid) + '&fields=' + encodeURIComponent(JSON.stringify(mediaFile.fields));
                    
197  }
                    
                
musicplayer.html https://bitbucket.org/pombredanne/spip-zone-treemap.git | HTML | 90 lines
                    
73	var flashvars[(#GET{objet_spip})]#ENV{id} = {};
                    
74		flashvars[(#GET{objet_spip})]#ENV{id}.playlist_url = encodeURIComponent("[(#URL_PAGE{xspf}|url_absolue|parametre_url{type,mp3|m3u,'&'}|parametre_url{[(#GET{objet_spip})],[(#GET{objet_val})],'&'})]");
                    
75		[(#GET{autoplay}|=={true}|oui)flashvars[(#GET{objet_spip})]#ENV{id}.autoplay ="#GET{autoplay}";]
                    
                
cpaint2.inc.compressed.js https://github.com/shafiqissani/ASTRA-College-Website.git | JavaScript | 72 lines
                    
24if(use_cpaint_api==true){for(i=3;i<call_arguments.length;i++){querystring+='&cpaint_argument[]='+encodeURIComponent(call_arguments[i]);}
                    
25querystring+='&cpaint_response_type='+response_type;if(transfer_mode=='GET'){url=url+'?cpaint_function='+remote_method+querystring;}else{querystring='cpaint_function='+remote_method+querystring;}}else{for(i=3;i<call_arguments.length;i++){if(i==3){querystring+=encodeURIComponent(call_arguments[i]);}else{querystring+='&'+encodeURIComponent(call_arguments[i]);}}
                    
26if(transfer_mode=='GET'){url=url+querystring;}}
                    
31for(i=3;i<call_arguments.length;i++){querystring+=encodeURIComponent(querystring_argument_prefix+call_arguments[i]+'&');}
                    
32querystring+=encodeURIComponent('&cpaint_function='+remote_method);querystring+=encodeURIComponent('&cpaint_responsetype='+response_type);if(transfer_mode=='GET'){proxyscript+='?cpaint_remote_url='+encodeURIComponent(url)
                    
33+'&cpaint_remote_method='+transfer_mode
                    
34+'&cpaint_response_type='+response_type
                    
35+'&cpaint_remote_query='+querystring;}else{querystring='cpaint_remote_url='+encodeURIComponent(url)
                    
36+'&cpaint_remote_method='+transfer_mode
                    
                
widgets.acl.jquery.js https://bitbucket.org/cantico/widgets.git | JavaScript | 688 lines
                    
112       		   url: meta.selfpage,
                    
113       		   data: 'tg=addon/widgets/groups&idx=checked&groups='+encodeURIComponent(val)+'&uid='+encodeURIComponent(meta.uid),
                    
114       		   success: function(response) {
                    
244		var meta = window.babAddonWidgets.getMetadata(widget.attr('id'));
                    
245		url_uid += '&groups['+encodeURIComponent(meta.uid)+']='+encodeURIComponent(groups);
                    
246		
                    
                
xajax_uncompressed.js https://gitlab.com/phamngsinh/baitaplon_sinhvien | JavaScript | 551 lines
                    
214						{
                    
215							if (formElements[i].options[j].selected == true)   sXml += name+"="+encodeURIComponent(formElements[i].options[j].value)+"&";
                    
216						}
                    
219					{
                    
220						sXml += name+"="+encodeURIComponent(formElements[i].value);
                    
221					}
                    
287			case xajaxDefinedGet:{
                    
288				var uriGet = uri.indexOf("?")==-1?"?xajax="+encodeURIComponent(sFunction):"&xajax="+encodeURIComponent(sFunction);
                    
289				if (aArgs) {
                    
294							value = this.objectToXML(value);
                    
295						uriGet += "&xajaxargs[]="+encodeURIComponent(value);
                    
296					}
                    
302			case xajaxDefinedPost:{
                    
303				postData = "xajax="+encodeURIComponent(sFunction);
                    
304				postData += "&xajaxr="+new Date().getTime();
                    
                
WebSocket.as https://github.com/vtemian/outclan.git | ActionScript | 452 lines
                    
268          logger.log("received: " + data);
                    
269          this.dispatchEvent(new WebSocketEvent("message", encodeURIComponent(data)));
                    
270          removeBufferBefore(pos + 1);
                    
                
querystring-debug.js https://gitlab.com/Mirros/cdnjs | JavaScript | 270 lines
                    
174 * (en|de)codeURIComponent functions.
                    
175 * Default: encodeURIComponent
                    
176 * @module querystring
                    
180 **/
                    
181QueryString.escape = encodeURIComponent;
                    
182
                    
                
offline-exporting.src.js https://gitlab.com/Mirros/cdnjs | JavaScript | 277 lines
                    
94			}
                    
95			return 'data:image/svg+xml;charset=UTF-8,' + encodeURIComponent(svg);
                    
96		},
                    
                
demo.js https://bitbucket.org/webcred/brizinga.git | JavaScript | 34 lines
                    
14				$('#forum').append('<h2>Forum</h2><ul id="forum_posts"></ul><h2>Subscribe</h2><form id="forum_subscribe" class="subscribe" action="#"><label for="email">E-mail:</label><input id="email" type="text" name="email" /><input type="submit" name="sub" value="Subscribe" /></form>');
                    
15				ForumCollection = Backbone.Collection.extend({ 'url': 'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q={0}'.format(encodeURIComponent(demo.forum)), 'parse': function(response) { return response.responseData.feed.entries; } });
                    
16				ForumPost = Backbone.View.extend({ 'tagName': 'li', 'className': 'group-item', 'template': _.template('<a href="<%=link%>"><%=title%></a></h3>'), 'render': function() { $(this.el).html(this.template(this.model.toJSON())); return this; } }); 
                    
                
polyfill.js https://gitlab.com/geekysquirrel/memo | JavaScript | 507 lines
                    
44    pairs.forEach(function (pair) {
                    
45      var name = encodeURIComponent(pair.name);
                    
46      var value = encodeURIComponent(pair.value);
                    
                
archive.html https://github.com/saimonmoore/saimonmoore.github.com.git | HTML | 271 lines
                    
262             if(links[i].href.indexOf('#disqus_thread') >= 0) {
                    
263               query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
                    
264             }
                    
                
google_base.tpl https://gitlab.com/reclamare/mao | Smarty Template | 248 lines
                    
73        $.ajax({
                    
74            url: 'index.php?route=feed/google_base/autocomplete&token=<?php echo $token; ?>&filter_name=' +  encodeURIComponent(request),
                    
75            dataType: 'json',
                    
98		$.ajax({
                    
99			url: 'index.php?route=catalog/category/autocomplete&token=<?php echo $token; ?>&filter_name=' +  encodeURIComponent(request),
                    
100			dataType: 'json',
                    
169		type: 'post',
                    
170		data: 'category_id=' + encodeURIComponent(this.value),
                    
171		dataType: 'json',
                    
                
ac-plugin.js https://github.com/nonano/yui3-gallery.git | JavaScript | 194 lines
                    
88            queryTemplate : {
                    
89                value : encodeURIComponent,
                    
90                setter : function (q) {
                    
99                                    /(^|[^\\])((\\{2})*)\{query\}/,
                    
100                                    '$1$2'+encodeURIComponent(query)
                    
101                                ).replace(
                    
                
bootstrap-table-cookie.js https://gitlab.com/lara_intern/BarcodeTechSolution | JavaScript | 331 lines
                    
70
                    
71        document.cookie = encodeURIComponent(cookieName) + '=' + encodeURIComponent(cookieValue) + calculateExpiration(that.options.cookieExpire) + (that.options.cookieDomain ? '; domain=' + that.options.cookieDomain : '') + (that.options.cookiePath ? '; path=' + that.options.cookiePath : '') + (that.cookieSecure ? '; secure' : '');
                    
72        return true;
                    
85
                    
86        return decodeURIComponent(document.cookie.replace(new RegExp('(?:(?:^|.*;)\\s*' + encodeURIComponent(cookieName).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=\\s*([^;]*).*$)|^.*$'), '$1')) || null;
                    
87    };
                    
92        }
                    
93        return (new RegExp('(?:^|;\\s*)' + encodeURIComponent(cookieName).replace(/[\-\.\+\*]/g, '\\$&') + '\\s*\\=')).test(document.cookie);
                    
94    };
                    
100        }
                    
101        document.cookie = encodeURIComponent(cookieName) + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT' + (sDomain ? '; domain=' + sDomain : '') + (sPath ? '; path=' + sPath : '');
                    
102        return true;
                    
                
satellizer.js https://gitlab.com/Mirros/cdnjs | JavaScript | 467 lines
                    
285            var paramValue = defaults[camelizedName];
                    
286            keyValuePairs.push([paramName, encodeURIComponent(paramValue)]);
                    
287          });
                    
327        angular.forEach(obj, function(value, key) {
                    
328          str.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
                    
329        });
                    
                
doctools.js https://github.com/safl/safl.github.com.git | JavaScript | 326 lines
                    
44 */
                    
45jQuery.urlencode = encodeURIComponent;
                    
46
                    
                
binary_parser.js https://github.com/zyklus/Vouchr.git | JavaScript | 261 lines
                    
211p.encode_cstring = function(s) { 
                    
212  return unescape(encodeURIComponent(s)) + p.fromByte(0);
                    
213};
                    
                
angular-cookies.js https://gitlab.com/Mirros/cdnjs | JavaScript | 320 lines
                    
287
                    
288    var str = encodeURIComponent(name) + '=' + encodeURIComponent(value);
                    
289    str += path ? ';path=' + path : '';
                    
                
index.js https://gitlab.com/laurenmbeatty/react_router | JavaScript | 497 lines
                    
208  return dir.split('/').map(function(part){
                    
209    curr.push(encodeURIComponent(part));
                    
210    return part ? '<a href="' + curr.join('/') + '">' + part + '</a>' : '';
                    
272      , classes = []
                    
273      , path = dir.split('/').map(function (c) { return encodeURIComponent(c); });
                    
274
                    
281
                    
282    path.push(encodeURIComponent(file.name));
                    
283
                    
                
Account.js https://gitlab.com/alexphillips/node-clouddrive | JavaScript | 527 lines
                    
38
                    
39    let scope = encodeURIComponent(this.scope.join(' '));
                    
40
                    
                
render.js https://github.com/sileht/debbot-seeks.git | JavaScript | 234 lines
                    
40    {
                    
41        snippet.url = "@base-url@/qc_redir?q=" + enc_query + "&url=" + encodeURIComponent(snippet.url);
                    
42    }
                    
                
dropbox-link.js https://gitlab.com/mlnkv/keeweb | JavaScript | 330 lines
                    
50    var urlParams = {
                    
51        origin: encodeURIComponent(window.location.protocol + '//' + window.location.host),
                    
52        'app_key': getKey(),
                    
                
tiki-view_forum_thread.tpl https://gitlab.com/ElvisAns/tiki | Smarty Template | 228 lines
                    
80                {if $prefs.sefurl_short_url eq 'y'}
                    
81                    <a class="dropdown-item" id="short_url_link" href="#" onclick="(function() { $(document.activeElement).attr('href', 'tiki-short_url.php?url=' + encodeURIComponent(window.location.href) + '&title=' + encodeURIComponent(document.title)); })();">
                    
82                        {icon name="link"} {tr}Get a short URL{/tr}
                    
                
axurerp_pagespecificscript.js https://github.com/customink-experience/customink-experience.github.com.git | JavaScript | 457 lines
                    
33function GetQuerystring() {
                    
34    return '#OnLoadVariable=' + encodeURIComponent($OnLoadVariable) + '&colorCount=' + encodeURIComponent($colorCount) + '&printOption=' + encodeURIComponent($printOption) + '&showWhite=' + encodeURIComponent($showWhite) + '&CSUM=1';
                    
35}
                    
                
core-min.js https://gitlab.com/Mirros/jsdelivr | JavaScript | 13 lines
                    
932-8*(b%4);a.length=h.ceil(b/4)},clone:function(){var a=f.clone.call(this);a.words=this.words.slice(0);return a},random:function(a){for(var b=[],d=0;d<a;d+=4)b.push(4294967296*h.random()|0);return new j.init(b,a)}}),m=k.enc={},s=m.Hex={stringify:function(a){var b=a.words;a=a.sigBytes;for(var d=[],c=0;c<a;c++){var e=b[c>>>2]>>>24-8*(c%4)&255;d.push((e>>>4).toString(16));d.push((e&15).toString(16))}return d.join("")},parse:function(a){for(var b=a.length,d=[],c=0;c<b;c+=2)d[c>>>3]|=parseInt(a.substr(c,
                    
102),16)<<24-4*(c%8);return new j.init(d,b/2)}},p=m.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var d=[],c=0;c<a;c++)d.push(String.fromCharCode(b[c>>>2]>>>24-8*(c%4)&255));return d.join("")},parse:function(a){for(var b=a.length,d=[],c=0;c<b;c++)d[c>>>2]|=(a.charCodeAt(c)&255)<<24-8*(c%4);return new j.init(d,b)}},t=m.Utf8={stringify:function(a){try{return decodeURIComponent(escape(p.stringify(a)))}catch(b){throw Error("Malformed UTF-8 data");}},parse:function(a){return p.parse(unescape(encodeURIComponent(a)))}},
                    
11q=l.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new j.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=t.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(a){var b=this._data,d=b.words,c=b.sigBytes,e=this.blockSize,f=c/(4*e),f=a?h.ceil(f):h.max((f|0)-this._minBufferSize,0);a=f*e;c=h.min(4*a,c);if(a){for(var g=0;g<a;g+=e)this._doProcessBlock(d,g);g=d.splice(0,a);b.sigBytes-=c}return new j.init(g,c)},clone:function(){var a=f.clone.call(this);
                    
                
js.cookie.js https://gitlab.com/Mirros/cdnjs | JavaScript | 139 lines
                    
57
                    
58				value = encodeURIComponent(String(value));
                    
59				value = value.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);
                    
60
                    
61				key = encodeURIComponent(String(key));
                    
62				key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);
                    
                
Request.js https://gitlab.com/qbarbosa/klindev | JavaScript | 358 lines
                    
134            } else {
                    
135                url = config.proxy + encodeURIComponent(url);
                    
136            }
                    
                
_comments.html https://gitlab.com/orvi2014/phpjs | HTML | 377 lines
                    
85    // PHP behavior, you would need to add &quot;.replace(/~/g, '%7E');&quot; to the following.
                    
86    return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').
                    
87    replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+');
                    
242on 2008-03-14 02:29:20 <br />
                    
243Well I just found out that escape() is actually not the best thing to use for this function. encodeURIComponent() seems to be required here. The reason behind this is that a literal + sign does not get escaped by escape() and so gets &amp;quot;lost in translation&amp;quot; when working in PHP. I never would have discovered this if I had not been sending values that were either a + or - sign. I have no idea if there are any other characters affected by this at this time. My apologies to anyone who may be affected by this; I thought that escape() worked properly until now.
                    
244<hr />
                    
293<pre><code>
                    
294use_key = encodeURIComponent(key);
                    
295use_val = encodeURIComponent(formdata[key].toString());
                    
333
                    
334though, apparently encodeURIComponent does not produce php compatible encoded ouput
                    
335<hr />
                    
343
                    
344Key can contain no-ascii character too, and encodeURIComponent() is more appropriate function.
                    
345
                    
                
javascript.js https://gitlab.com/JunaYa/JunaYa-blog | JavaScript | 113 lines
                    
15        'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' +
                    
16        'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' +
                    
17        'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' +
                    
                
indexscript.js https://github.com/TrinityCore/trinitycore.github.com.git | JavaScript | 242 lines
                    
44        var location = "" + (window.location);
                    
45        window.location = "http://google.com/search?sitesearch=" + encodeURIComponent(location) + "&q=" + encodeURIComponent(text);
                    
46    }
                    
                
delegate.js https://bitbucket.org/restorehc/rdi.git | JavaScript | 455 lines
                    
112			k['noteText_s'] = (  knt.length > 27 ?  knt.substr(0,24) + '...' : knt);
                    
113			k['noteFile_f']='' ; if (k['noteFile']) { k['noteFile_f']='<a class="func_view_note_file" style="z-index:19;" data-notefile="' + encodeURIComponent(k['noteFile']) + '"  data-filename="' + encodeURIComponent(k['filename']) + '" data-noteid="' + encodeURIComponent(k['noteID']) + '" ><img class="file_icon"  src="/images/file.png" /></a>'; }  return k;  }), ['noteText_s', 'dateEntered_f', 'author', 'noteFile_f',  'data' ]);
                    
114									
                    
158			k['noteText_s'] = (  knt.length > 27 ?  knt.substr(0,24) + '...' : knt);
                    
159			k['noteFile_f']='' ; if (k['noteFile']) { k['noteFile_f']='<a class="func_view_note_file" style="z-index:19;" data-notefile="' + encodeURIComponent(k['noteFile']) + '"  data-filename="' + encodeURIComponent(k['filename']) + '" data-noteid="' + encodeURIComponent(k['noteID']) + '" ><img class="file_icon"  src="/images/file.png" /></a>'; }  return k;  }), ['noteText_s', 'dateEntered_f', 'author', 'noteFile_f',  'data' ]);
                    
160									
                    
                
filerenderer.ts https://github.com/Twinside/DiffTimeline.git | TypeScript | 246 lines
                    
50        
                    
51        request += '/' + encodeURIComponent(file);
                    
52
                    
                
_logview.js https://gitlab.com/estratega.pe/quote | JavaScript | 283 lines
                    
108        
                    
109        var href = 'mailto:' + common.Trim(email) + '?subject=' + encodeURIComponent('WebPhone Log') + '&body=' + stringres.get('support_email_body');
                    
110        
                    
147
                    
148            var href = 'mailto:' + common.Trim(email) + '?subject=' + encodeURIComponent('WebPhone Log') + '&body=' + stringres.get('support_email_body');
                    
149            $('#sendtosupport_link').attr('href', href);
                    
                
addcslashes.js https://gitlab.com/rickoverman/doo-cli | JavaScript | 158 lines
                    
136            //target += _pad(cca.toString(8), 3);break; // Sufficient for UTF-16
                    
137            encoded = encodeURIComponent(c);
                    
138
                    
                
edit_template.jsp https://github.com/oterral/liferay-portal.git | JavaServer Pages | 329 lines
                    
89	<aui:input name="templateId" type="hidden" value="<%= templateId %>" />
                    
90	<aui:input name="xslContent" type="hidden" value="<%= JS.encodeURIComponent(xsl) %>" />
                    
91	<aui:input name="saveAndContinue" type="hidden" />
                    
                
plugin.js https://github.com/ealonso/liferay-portal.git | JavaScript | 489 lines
                    
219						? editor.config.attachmentURLPrefix +
                    
220						  encodeURIComponent(itemValue.title)
                    
221						: itemValue.url;
                    
                
yql-coverage.js https://gitlab.com/fxaeberhard/Wedance-java | JavaScript | 271 lines
                    
34};
                    
35_yuitest_coverage["build/yql/yql.js"].code=["YUI.add('yql', function (Y, NAME) {","","/**"," * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/)."," * @module yql"," */","/**"," * Utility Class used under the hood my the YQL class"," * @class YQLRequest"," * @constructor"," * @param {String} sql The SQL statement to execute"," * @param {Function/Object} callback The callback to execute after the query (Falls through to JSONP)."," * @param {Object} params An object literal of extra parameters to pass along (optional)."," * @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)"," */","var YQLRequest = function (sql, callback, params, opts) {","","    if (!params) {","        params = {};","    }","    params.q = sql;","    //Allow format override.. JSON-P-X","    if (!params.format) {","        params.format = Y.YQLRequest.FORMAT;","    }","    if (!params.env) {","        params.env = Y.YQLRequest.ENV;","    }","","    this._context = this;","","    if (opts && opts.context) {","        this._context = opts.context;","        delete opts.context;","    }","","    if (params && params.context) {","        this._context = params.context;","        delete params.context;","    }","","    this._params = params;","    this._opts = opts;","    this._callback = callback;","","};","","YQLRequest.prototype = {","    /**","    * @private","    * @property _jsonp","    * @description Reference to the JSONP instance used to make the queries","    */","    _jsonp: null,","    /**","    * @private","    * @property _opts","    * @description Holder for the opts argument","    */","    _opts: null,","    /**","    * @private","    * @property _callback","    * @description Holder for the callback argument","    */","    _callback: null,","    /**","    * @private","    * @property _params","    * @description Holder for the params argument","    */","    _params: null,","    /**","    * @private","    * @property _context","    * @description The context to execute the callback in","    */","    _context: null,","    /**","    * @private","    * @method _internal","    * @description Internal Callback Handler","    */","    _internal: function () {","        this._callback.apply(this._context, arguments);","    },","    /**","    * @method send","    * @description The method that executes the YQL Request.","    * @chainable","    * @return {YQLRequest}","    */","    send: function () {","        var qs = [], url = ((this._opts && this._opts.proto) ? this._opts.proto : Y.YQLRequest.PROTO), o;","","        Y.each(this._params, function (v, k) {","            qs.push(k + '=' + encodeURIComponent(v));","        });","","        qs = qs.join('&');","","        url += ((this._opts && this._opts.base) ? this._opts.base : Y.YQLRequest.BASE_URL) + qs;","","        o = (!Y.Lang.isFunction(this._callback)) ? this._callback : { on: { success: this._callback } };","","        o.on = o.on || {};","        this._callback = o.on.success;","","        o.on.success = Y.bind(this._internal, this);","","        this._send(url, o);","        return this;","    },","    /**","    * Private method to send the request, overwritten in plugins","    * @method _send","    * @private","    * @param {String} url The URL to request","    * @param {Object} o The config object","    */","    _send: function(url, o) {","        if (o.allowCache !== false) {","            o.allowCache = true;","        }","        if (!this._jsonp) {","            this._jsonp = Y.jsonp(url, o);","        } else {","            this._jsonp.url = url;","            if (o.on && o.on.success) {","                this._jsonp._config.on.success = o.on.success;","            }","            this._jsonp.send();","        }","    }","};","","/**","* @static","* @property FORMAT","* @description Default format to use: json","*/","YQLRequest.FORMAT = 'json';","/**","* @static","* @property PROTO","* @description Default protocol to use: http","*/","YQLRequest.PROTO = 'http';","/**","* @static","* @property BASE_URL","* @description The base URL to query: query.yahooapis.com/v1/public/yql?","*/","YQLRequest.BASE_URL = ':/' + '/query.yahooapis.com/v1/public/yql?';","/**","* @static","* @property ENV","* @description The environment file to load: http://datatables.org/alltables.env","*/","YQLRequest.ENV = 'http:/' + '/datatables.org/alltables.env';","","Y.YQLRequest = YQLRequest;","","/**"," * This class adds a sugar class to allow access to YQL (http://developer.yahoo.com/yql/)."," * @class YQL"," * @constructor"," * @param {String} sql The SQL statement to execute"," * @param {Function} callback The callback to execute after the query (optional)."," * @param {Object} params An object literal of extra parameters to pass along (optional)."," * @param {Object} opts An object literal of configuration options (optional): proto (http|https), base (url)"," */","Y.YQL = function (sql, callback, params, opts) {","    return new Y.YQLRequest(sql, callback, params, opts).send();","};","","","}, '3.8.0', {\"requires\": [\"jsonp\", \"jsonp-url\"]});"];
                    
36_yuitest_coverage["build/yql/yql.js"].lines = {"1":0,"16":0,"18":0,"19":0,"21":0,"23":0,"24":0,"26":0,"27":0,"30":0,"32":0,"33":0,"34":0,"37":0,"38":0,"39":0,"42":0,"43":0,"44":0,"48":0,"85":0,"94":0,"96":0,"97":0,"100":0,"102":0,"104":0,"106":0,"107":0,"109":0,"111":0,"112":0,"122":0,"123":0,"125":0,"126":0,"128":0,"129":0,"130":0,"132":0,"142":0,"148":0,"154":0,"160":0,"162":0,"173":0,"174":0};
                    
164_yuitest_coverline("build/yql/yql.js", 97);
                    
165qs.push(k + '=' + encodeURIComponent(v));
                    
166        });
                    
                
index.erb https://github.com/koba290/rhodes-system-api-samples.git | Ruby HTML | 353 lines
                    
148	//alert("about to open xmlHttpReq");
                    
149        var params = param_name+'=' + encodeURIComponent(param_value);
                    
150  //alert("ajaxCallWithParam() 3");
                    
                
jsCookieTest.js https://gitlab.com/mohamed_hussein/prodt | JavaScript | 275 lines
                    
91      .setCookie({
                    
92        name: encodeURIComponent(' js_cookie_test_encoded'),
                    
93        value: encodeURIComponent(' red panda'),
                    
                
 

Source

Language