Changeset be58b50 in github
- Timestamp:
- Nov 14, 2011 4:09:21 AM (19 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
- Children:
- 2f9fdbf
- Parents:
- bd34cad
- File:
-
- 1 edited
-
program/js/common.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/js/common.js
r65082b3 rbe58b50 543 543 }; 544 544 545 // make a string URL safe 545 // make a string URL safe (and compatible with PHP's rawurlencode()) 546 546 function urlencode(str) 547 547 { 548 return window.encodeURIComponent ? encodeURIComponent(str) : escape(str); 548 if (window.encodeURIComponent) 549 return encodeURIComponent(str).replace('*', '%2A'); 550 551 return escape(str) 552 .replace('+', '%2B') 553 .replace('*', '%2A') 554 .replace('/', '%2F') 555 .replace('@', '%40'); 549 556 }; 550 557
Note: See TracChangeset
for help on using the changeset viewer.
