- Make urlencode() compatible with PHP's rawurlencode() - fixes collapsing/expanding of folders with some special characters in name
| | |
| | | return out; |
| | | }; |
| | | |
| | | // make a string URL safe |
| | | // make a string URL safe (and compatible with PHP's rawurlencode()) |
| | | function urlencode(str) |
| | | { |
| | | return window.encodeURIComponent ? encodeURIComponent(str) : escape(str); |
| | | if (window.encodeURIComponent) |
| | | return encodeURIComponent(str).replace('*', '%2A'); |
| | | |
| | | return escape(str) |
| | | .replace('+', '%2B') |
| | | .replace('*', '%2A') |
| | | .replace('/', '%2F') |
| | | .replace('@', '%40'); |
| | | }; |
| | | |
| | | |