msl-server-node/mslMiddleware.js
function reparsePath(oldpath) {
        if (oldpath.indexOf("?") >= 0) {
            var vars = oldpath.split("?")[1].split("&");
            var result = oldpath.split("?")[0] + '?';
            var firstFlag = 0;
            for (var i = 0; i < vars.length; i++) {
                var pair = vars[i].split("=");
                if (ignoredParams.search(pair[0]) < 0) {
                    if (firstFlag === 0) {
                        result = result + pair[0] + '=' + pair[1];
                        firstFlag = 1;
                    }
                    else {
                        result = result + '&' + pair[0] + '=' + pair[1];
                    }
                }
            }
            return result;
        }
        else {
            return oldpath;
        }
    }
function reparsePath(oldpath) {
        if (oldpath.indexOf("?") >= 0) {
            var vars = oldpath.split("?")[1].split("&");
            var result = oldpath.split("?")[0] + '?';
            var firstFlag = 0;
            for (var i = 0; i < vars.length; i++) {
                var pair = vars[i].split("=");
                if (ignoredParams.search(pair[0]) < 0) {
                    if (firstFlag === 0) {
                        result = result + pair[0] + '=' + pair[1];
                        firstFlag = 1;
                    }
                    else {
                        result = result + '&' + pair[0] + '=' + pair[1];
                    }
                }
            }
            return result;
        }
        else {
            return oldpath;
        }
    }
function reparsePath ( oldpath ) { if ( oldpath . indexOf ( "?" ) >= 0 ) { var vars = oldpath . split ( "?" ) [ 1 ] . split ( "&" ) ; var result = oldpath . split ( "?" ) [ 0 ] + '?' ; var firstFlag = 0 ; for ( var i = 0 ; i < vars . length ; i ++ ) { var pair = vars [ i ] . split ( "=" ) ; if ( ignoredParams . search ( pair [ 0 ] ) < 0 ) { if ( firstFlag === 0 ) { result = result + pair [ 0 ] + '=' + pair [ 1 ] ; firstFlag = 1 ; } else { result = result + '&' + pair [ 0 ] + '=' + pair [ 1 ] ; } } } return result ; } else { return oldpath ; } }
Supporting function to parse the the URL to ignore the parameters that user don't need. Not exposed to the client.
Supporting function to parse the the URL to ignore the parameters that user don t need . Not exposed to the client .