Projet

Général

Profil

0003-misc-make-sure-redirect-URLs-are-real-strings-41236.patch

Frédéric Péters, 01 avril 2020 17:39

Télécharger (960 octets)

Voir les différences:

Subject: [PATCH 3/4] misc: make sure redirect URLs are real strings (#41236)

 wcs/workflows.py | 5 +++++
 1 file changed, 5 insertions(+)
wcs/workflows.py
83 83
        # performs the items of the new status
84 84
        wf_status = formdata.get_status()
85 85
        url = perform_items(wf_status.items, formdata, depth=depth-1) or url
86
    if url:
87
        # hack around webtest as it checks type(url) is str and
88
        # this won't work on django safe strings (isinstance would work);
89
        # adding '' makes sure we get a "real" str object.
90
        url = url + ''
86 91
    return url
87 92

  
88 93

  
89
-