Bug in example (within main function)

Bug #1928509 reported by Ron Ritchey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Security Advisory
New
Undecided
Unassigned

Bug Description

This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:

- [X] This doc is inaccurate in this way: Example code has a bug
- [ ] This is a doc addition request.
- [X] I have a fix to the document that I can paste below including example: input and output.

If you have a troubleshooting or support issue, use the following resources:

 - The mailing list: https://lists.openstack.org
 - IRC: 'openstack' channel on Freenode

-----------------------------------
Release: 0.0.1.dev228 on 2021-01-21 16:53:50
SHA: d4785ae6fdb8b9fd87748b508c10622f6c0ae027
Source: https://opendev.org/openstack/ossa/src/doc/source/guidelines/dg_using-file-paths.rst
URL: https://security.openstack.org/guidelines/dg_using-file-paths.html

if is_safe_path(os.getcwd(), path):

should instead be...

if is_safe_path(os.getcwd(), arg):

Revision history for this message
Gage Hugo (gagehugo) wrote :

Marking this one as a duplicate since it's by the same reporter and the other one has more details.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.