{"action":"created","comment":{"url":"https://api.github.com/repos/astaxie/beego/pulls/comments/46527262","id":46527262,"diff_hunk":"@@ -144,7 +143,7 @@ func isStaticCompress(filePath string) bool {\n // searchFile search the file by url path\n // if none the static file prefix matches ,return notStaticRequestErr\n func searchFile(ctx *context.Context) (string, os.FileInfo, error) {\n-\trequestPath := filepath.Clean(ctx.Input.Request.URL.Path)\n+\trequestPath := path.Clean(ctx.Input.Request.URL.Path)","path":"staticfile.go","position":13,"original_position":13,"commit_id":"ff0762cc199219f6d79d70f48e78411bf1786274","original_commit_id":"ff0762cc199219f6d79d70f48e78411bf1786274","user":{"login":"nkbai","id":10471399,"avatar_url":"https://avatars.githubusercontent.com/u/10471399?v=3","gravatar_id":"","url":"https://api.github.com/users/nkbai","html_url":"https://github.com/nkbai","followers_url":"https://api.github.com/users/nkbai/followers","following_url":"https://api.github.com/users/nkbai/following{/other_user}","gists_url":"https://api.github.com/users/nkbai/gists{/gist_id}","starred_url":"https://api.github.com/users/nkbai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkbai/subscriptions","organizations_url":"https://api.github.com/users/nkbai/orgs","repos_url":"https://api.github.com/users/nkbai/repos","events_url":"https://api.github.com/users/nkbai/events{/privacy}","received_events_url":"https://api.github.com/users/nkbai/received_events","type":"User","site_admin":false},"body":"有什么安全隐患?我看两个函数的注释说明基本上一模一样,当然我没有仔细看他如何实现","created_at":"2015-12-03T09:09:50Z","updated_at":"2015-12-03T09:09:50Z","html_url":"https://github.com/astaxie/beego/pull/1455#discussion_r46527262","pull_request_url":"https://api.github.com/repos/astaxie/beego/pulls/1455","_links":{"self":{"href":"https://api.github.com/repos/astaxie/beego/pulls/comments/46527262"},"html":{"href":"https://github.com/astaxie/beego/pull/1455#discussion_r46527262"},"pull_request":{"href":"https://api.github.com/repos/astaxie/beego/pulls/1455"}}},"pull_request":{"url":"https://api.github.com/repos/astaxie/beego/pulls/1455","id":51809960,"html_url":"https://github.com/astaxie/beego/pull/1455","diff_url":"https://github.com/astaxie/beego/pull/1455.diff","patch_url":"https://github.com/astaxie/beego/pull/1455.patch","issue_url":"https://api.github.com/repos/astaxie/beego/issues/1455","number":1455,"state":"open","locked":false,"title":"\twindows下静态文件映射找不到问题以及 grace init延后","user":{"login":"nkbai","id":10471399,"avatar_url":"https://avatars.githubusercontent.com/u/10471399?v=3","gravatar_id":"","url":"https://api.github.com/users/nkbai","html_url":"https://github.com/nkbai","followers_url":"https://api.github.com/users/nkbai/followers","following_url":"https://api.github.com/users/nkbai/following{/other_user}","gists_url":"https://api.github.com/users/nkbai/gists{/gist_id}","starred_url":"https://api.github.com/users/nkbai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkbai/subscriptions","organizations_url":"https://api.github.com/users/nkbai/orgs","repos_url":"https://api.github.com/users/nkbai/repos","events_url":"https://api.github.com/users/nkbai/events{/privacy}","received_events_url":"https://api.github.com/users/nkbai/received_events","type":"User","site_admin":false},"body":" Controller.GetInt等函数稍微简化一下,这样看上去更合理一些\r\n","created_at":"2015-11-25T15:42:41Z","updated_at":"2015-12-03T09:09:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdce5fc889846a4132a12692863aeeb26a33cf6f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/astaxie/beego/pulls/1455/commits","review_comments_url":"https://api.github.com/repos/astaxie/beego/pulls/1455/comments","review_comment_url":"https://api.github.com/repos/astaxie/beego/pulls/comments{/number}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/1455/comments","statuses_url":"https://api.github.com/repos/astaxie/beego/statuses/ff0762cc199219f6d79d70f48e78411bf1786274","head":{"label":"nkbai:develop","ref":"develop","sha":"ff0762cc199219f6d79d70f48e78411bf1786274","user":{"login":"nkbai","id":10471399,"avatar_url":"https://avatars.githubusercontent.com/u/10471399?v=3","gravatar_id":"","url":"https://api.github.com/users/nkbai","html_url":"https://github.com/nkbai","followers_url":"https://api.github.com/users/nkbai/followers","following_url":"https://api.github.com/users/nkbai/following{/other_user}","gists_url":"https://api.github.com/users/nkbai/gists{/gist_id}","starred_url":"https://api.github.com/users/nkbai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkbai/subscriptions","organizations_url":"https://api.github.com/users/nkbai/orgs","repos_url":"https://api.github.com/users/nkbai/repos","events_url":"https://api.github.com/users/nkbai/events{/privacy}","received_events_url":"https://api.github.com/users/nkbai/received_events","type":"User","site_admin":false},"repo":{"id":46535813,"name":"beego","full_name":"nkbai/beego","owner":{"login":"nkbai","id":10471399,"avatar_url":"https://avatars.githubusercontent.com/u/10471399?v=3","gravatar_id":"","url":"https://api.github.com/users/nkbai","html_url":"https://github.com/nkbai","followers_url":"https://api.github.com/users/nkbai/followers","following_url":"https://api.github.com/users/nkbai/following{/other_user}","gists_url":"https://api.github.com/users/nkbai/gists{/gist_id}","starred_url":"https://api.github.com/users/nkbai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkbai/subscriptions","organizations_url":"https://api.github.com/users/nkbai/orgs","repos_url":"https://api.github.com/users/nkbai/repos","events_url":"https://api.github.com/users/nkbai/events{/privacy}","received_events_url":"https://api.github.com/users/nkbai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nkbai/beego","description":"beego is an open-source, high-performance web framework for the Go programming language.","fork":true,"url":"https://api.github.com/repos/nkbai/beego","forks_url":"https://api.github.com/repos/nkbai/beego/forks","keys_url":"https://api.github.com/repos/nkbai/beego/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nkbai/beego/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nkbai/beego/teams","hooks_url":"https://api.github.com/repos/nkbai/beego/hooks","issue_events_url":"https://api.github.com/repos/nkbai/beego/issues/events{/number}","events_url":"https://api.github.com/repos/nkbai/beego/events","assignees_url":"https://api.github.com/repos/nkbai/beego/assignees{/user}","branches_url":"https://api.github.com/repos/nkbai/beego/branches{/branch}","tags_url":"https://api.github.com/repos/nkbai/beego/tags","blobs_url":"https://api.github.com/repos/nkbai/beego/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nkbai/beego/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nkbai/beego/git/refs{/sha}","trees_url":"https://api.github.com/repos/nkbai/beego/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nkbai/beego/statuses/{sha}","languages_url":"https://api.github.com/repos/nkbai/beego/languages","stargazers_url":"https://api.github.com/repos/nkbai/beego/stargazers","contributors_url":"https://api.github.com/repos/nkbai/beego/contributors","subscribers_url":"https://api.github.com/repos/nkbai/beego/subscribers","subscription_url":"https://api.github.com/repos/nkbai/beego/subscription","commits_url":"https://api.github.com/repos/nkbai/beego/commits{/sha}","git_commits_url":"https://api.github.com/repos/nkbai/beego/git/commits{/sha}","comments_url":"https://api.github.com/repos/nkbai/beego/comments{/number}","issue_comment_url":"https://api.github.com/repos/nkbai/beego/issues/comments{/number}","contents_url":"https://api.github.com/repos/nkbai/beego/contents/{+path}","compare_url":"https://api.github.com/repos/nkbai/beego/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nkbai/beego/merges","archive_url":"https://api.github.com/repos/nkbai/beego/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nkbai/beego/downloads","issues_url":"https://api.github.com/repos/nkbai/beego/issues{/number}","pulls_url":"https://api.github.com/repos/nkbai/beego/pulls{/number}","milestones_url":"https://api.github.com/repos/nkbai/beego/milestones{/number}","notifications_url":"https://api.github.com/repos/nkbai/beego/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nkbai/beego/labels{/name}","releases_url":"https://api.github.com/repos/nkbai/beego/releases{/id}","created_at":"2015-11-20T03:07:37Z","updated_at":"2015-11-20T03:07:38Z","pushed_at":"2015-12-03T07:50:41Z","git_url":"git://github.com/nkbai/beego.git","ssh_url":"git@github.com:nkbai/beego.git","clone_url":"https://github.com/nkbai/beego.git","svn_url":"https://github.com/nkbai/beego","homepage":"beego.me","size":5774,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"astaxie:develop","ref":"develop","sha":"3d4ad560f83148ac1c7cafc00dffbe61cb485524","user":{"login":"astaxie","id":233907,"avatar_url":"https://avatars.githubusercontent.com/u/233907?v=3","gravatar_id":"","url":"https://api.github.com/users/astaxie","html_url":"https://github.com/astaxie","followers_url":"https://api.github.com/users/astaxie/followers","following_url":"https://api.github.com/users/astaxie/following{/other_user}","gists_url":"https://api.github.com/users/astaxie/gists{/gist_id}","starred_url":"https://api.github.com/users/astaxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astaxie/subscriptions","organizations_url":"https://api.github.com/users/astaxie/orgs","repos_url":"https://api.github.com/users/astaxie/repos","events_url":"https://api.github.com/users/astaxie/events{/privacy}","received_events_url":"https://api.github.com/users/astaxie/received_events","type":"User","site_admin":false},"repo":{"id":3577919,"name":"beego","full_name":"astaxie/beego","owner":{"login":"astaxie","id":233907,"avatar_url":"https://avatars.githubusercontent.com/u/233907?v=3","gravatar_id":"","url":"https://api.github.com/users/astaxie","html_url":"https://github.com/astaxie","followers_url":"https://api.github.com/users/astaxie/followers","following_url":"https://api.github.com/users/astaxie/following{/other_user}","gists_url":"https://api.github.com/users/astaxie/gists{/gist_id}","starred_url":"https://api.github.com/users/astaxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astaxie/subscriptions","organizations_url":"https://api.github.com/users/astaxie/orgs","repos_url":"https://api.github.com/users/astaxie/repos","events_url":"https://api.github.com/users/astaxie/events{/privacy}","received_events_url":"https://api.github.com/users/astaxie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/astaxie/beego","description":"beego is an open-source, high-performance web framework for the Go programming language.","fork":false,"url":"https://api.github.com/repos/astaxie/beego","forks_url":"https://api.github.com/repos/astaxie/beego/forks","keys_url":"https://api.github.com/repos/astaxie/beego/keys{/key_id}","collaborators_url":"https://api.github.com/repos/astaxie/beego/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/astaxie/beego/teams","hooks_url":"https://api.github.com/repos/astaxie/beego/hooks","issue_events_url":"https://api.github.com/repos/astaxie/beego/issues/events{/number}","events_url":"https://api.github.com/repos/astaxie/beego/events","assignees_url":"https://api.github.com/repos/astaxie/beego/assignees{/user}","branches_url":"https://api.github.com/repos/astaxie/beego/branches{/branch}","tags_url":"https://api.github.com/repos/astaxie/beego/tags","blobs_url":"https://api.github.com/repos/astaxie/beego/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/astaxie/beego/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/astaxie/beego/git/refs{/sha}","trees_url":"https://api.github.com/repos/astaxie/beego/git/trees{/sha}","statuses_url":"https://api.github.com/repos/astaxie/beego/statuses/{sha}","languages_url":"https://api.github.com/repos/astaxie/beego/languages","stargazers_url":"https://api.github.com/repos/astaxie/beego/stargazers","contributors_url":"https://api.github.com/repos/astaxie/beego/contributors","subscribers_url":"https://api.github.com/repos/astaxie/beego/subscribers","subscription_url":"https://api.github.com/repos/astaxie/beego/subscription","commits_url":"https://api.github.com/repos/astaxie/beego/commits{/sha}","git_commits_url":"https://api.github.com/repos/astaxie/beego/git/commits{/sha}","comments_url":"https://api.github.com/repos/astaxie/beego/comments{/number}","issue_comment_url":"https://api.github.com/repos/astaxie/beego/issues/comments{/number}","contents_url":"https://api.github.com/repos/astaxie/beego/contents/{+path}","compare_url":"https://api.github.com/repos/astaxie/beego/compare/{base}...{head}","merges_url":"https://api.github.com/repos/astaxie/beego/merges","archive_url":"https://api.github.com/repos/astaxie/beego/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/astaxie/beego/downloads","issues_url":"https://api.github.com/repos/astaxie/beego/issues{/number}","pulls_url":"https://api.github.com/repos/astaxie/beego/pulls{/number}","milestones_url":"https://api.github.com/repos/astaxie/beego/milestones{/number}","notifications_url":"https://api.github.com/repos/astaxie/beego/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/astaxie/beego/labels{/name}","releases_url":"https://api.github.com/repos/astaxie/beego/releases{/id}","created_at":"2012-02-29T02:32:08Z","updated_at":"2015-12-03T06:15:04Z","pushed_at":"2015-12-03T07:50:45Z","git_url":"git://github.com/astaxie/beego.git","ssh_url":"git@github.com:astaxie/beego.git","clone_url":"https://github.com/astaxie/beego.git","svn_url":"https://github.com/astaxie/beego","homepage":"beego.me","size":7485,"stargazers_count":5647,"watchers_count":5647,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1451,"mirror_url":null,"open_issues_count":263,"forks":1451,"open_issues":263,"watchers":5647,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/astaxie/beego/pulls/1455"},"html":{"href":"https://github.com/astaxie/beego/pull/1455"},"issue":{"href":"https://api.github.com/repos/astaxie/beego/issues/1455"},"comments":{"href":"https://api.github.com/repos/astaxie/beego/issues/1455/comments"},"review_comments":{"href":"https://api.github.com/repos/astaxie/beego/pulls/1455/comments"},"review_comment":{"href":"https://api.github.com/repos/astaxie/beego/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/astaxie/beego/pulls/1455/commits"},"statuses":{"href":"https://api.github.com/repos/astaxie/beego/statuses/ff0762cc199219f6d79d70f48e78411bf1786274"}}}}