Staging
v0.5.1
https://github.com/python/cpython
Revision 668d321476d974c4f51476b33aaca870272523bf authored by Miss Islington (bot) on 18 July 2020, 20:39:12 UTC, committed by GitHub on 18 July 2020, 20:39:12 UTC

reject control chars in http method in http.client.putrequest to prevent http header injection
(cherry picked from commit 8ca8a2e8fb068863c1138f07e3098478ef8be12e)

Co-authored-by: AMIR <31338382+amiremohamadi@users.noreply.github.com>
1 parent 7734738
Raw File
Tip revision: 668d321476d974c4f51476b33aaca870272523bf authored by Miss Islington (bot) on 18 July 2020, 20:39:12 UTC
bpo-39603: Prevent header injection in http methods (GH-18485)
Tip revision: 668d321
osmodule.h

/* os module interface */

#ifndef Py_OSMODULE_H
#define Py_OSMODULE_H
#ifdef __cplusplus
extern "C" {
#endif

#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
PyAPI_FUNC(PyObject *) PyOS_FSPath(PyObject *path);
#endif

#ifdef __cplusplus
}
#endif
#endif /* !Py_OSMODULE_H */
back to top