Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for cleanPath (0.27 sec)

  1. src/net/http/server_test.go

    		in, want string
    	}{
    		{"//", "/"},
    		{"/x", "/x"},
    		{"//x", "/x"},
    		{"x//", "/x/"},
    		{"a//b/////c", "/a/b/c"},
    		{"/foo/../bar/./..//baz", "/baz"},
    	} {
    		got := cleanPath(test.in)
    		if got != test.want {
    			t.Errorf("%s: got %q, want %q", test.in, got, test.want)
    		}
    	}
    }
    
    func BenchmarkServerMatch(b *testing.B) {
    	fn := func(w ResponseWriter, r *Request) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 13:54:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. pkg/volume/util/volumepathhandler/volume_path_handler_linux.go

    		if backingFilePath == path || backingFilePath == realPath {
    			return fmt.Sprintf("/dev/%s", filepath.Base(device)), nil
    		}
    	}
    
    	return "", errors.New(ErrDeviceNotFound)
    }
    
    // cleanPath remove any trailing substrings that are not part of the backing file path.
    func cleanBackingFilePath(path string) string {
    	// If the block device was deleted, the path will contain a "(deleted)" suffix
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. src/net/http/servemux121.go

    		}
    
    		return mux.handler(r.Host, r.URL.Path)
    	}
    
    	// All other requests have any port stripped and path cleaned
    	// before passing to mux.handler.
    	host := stripHostPort(r.Host)
    	path := cleanPath(r.URL.Path)
    
    	// If the given path is /tree and its handler is not registered,
    	// redirect for /tree/.
    	if u, ok := mux.redirectToPathSlash(host, path, r.URL); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:40:38 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/net/http/pattern.go

    	// At this point, rest is the path.
    	off += i
    
    	// An unclean path with a method that is not CONNECT can never match,
    	// because paths are cleaned before matching.
    	if method != "" && method != "CONNECT" && rest != cleanPath(rest) {
    		return nil, errors.New("non-CONNECT pattern with unclean path can never match")
    	}
    
    	seenNames := map[string]bool{} // remember wildcard names to catch dups
    	for len(rest) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. src/net/http/server.go

    }
    
    // DefaultServeMux is the default [ServeMux] used by [Serve].
    var DefaultServeMux = &defaultServeMux
    
    var defaultServeMux ServeMux
    
    // cleanPath returns the canonical path for p, eliminating . and .. elements.
    func cleanPath(p string) string {
    	if p == "" {
    		return "/"
    	}
    	if p[0] != '/' {
    		p = "/" + p
    	}
    	np := path.Clean(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  6. pkg/ctrlz/assets/static/js/jquery-3.2.1.slim.min.js

    eof a&&!Aa.test(a)&&!ma[(ka.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(r.cleanData(na(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ja(this,arguments,function(b){var c=this.parentNode;r.inArray(this,a)<0&&(r.cleanData(na(this)),c&&c.replaceChild(b,this))},a)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",repl...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 68K bytes
    - Viewed (0)
  7. src/main/webapp/js/jquery-3.6.3.min.js

    eof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(ye(this)),t&&t.replaceChild(e,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",repl...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 87.8K bytes
    - Viewed (0)
  8. src/main/webapp/js/admin/jquery-3.6.3.min.js

    eof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(ye(this)),t&&t.replaceChild(e,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",repl...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 87.8K bytes
    - Viewed (0)
  9. src/main/webapp/js/admin/jquery-3.6.3.min.map

    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 135.2K bytes
    - Viewed (0)
  10. src/main/webapp/js/jquery-3.6.3.min.map

    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 135.2K bytes
    - Viewed (0)
Back to top