0003-misc-make-sure-redirect-URLs-are-real-strings-41236.patch
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 |
- |