MCPcopy Index your code
hub / github.com/mailru/FileAPI / urlEncodeIfNecessary

Function urlEncodeIfNecessary

flash/image/html-template/swfobject.js:588–592  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

586 /* Filter to avoid XSS attacks
587 */
588 function urlEncodeIfNecessary(s) {
589 var regex = /[\\\"<>\.;]/;
590 var hasBadChars = regex.exec(s) != null;
591 return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;
592 }
593
594 /* Release memory to avoid memory leaks caused by closures, fix hanging audio/video threads and force open sockets/NetConnections to disconnect (Internet Explorer only)
595 */

Callers 1

swfobject.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected