Skip to content

resumableio: use mkfile #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2013
Merged

resumableio: use mkfile #76

merged 1 commit into from
Oct 24, 2013

Conversation

chzyer
Copy link
Contributor

@chzyer chzyer commented Oct 21, 2013

No description provided.

url.append("params/%s" % urlsafe_b64encode(extra.callback_params))
if extra.params:
for k, v in extra.params.iteritems():
url.append("%s/%s" % (k, urlsafe_b64encode(v)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

此处k直接拼接入url,如果用户提供的自定义变量名包含url-unsafe的字符会发生什么?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

自定义变量名的命名用户可控,可以规避
服务端也没有进行相应的encode措施

xushiwei added a commit that referenced this pull request Oct 24, 2013
resumableio: use mkfile
@xushiwei xushiwei merged commit 61ffde0 into qiniu:develop Oct 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants