[Mailman-Users] question for the python programmers

Mark Sapiro msapiro at value.net
Mon Feb 14 22:23:27 CET 2005

David Morse <dcmorse at gmail.com> wrote:
>If I look at the logs, this seems to be the problem
>admin(1853):   File "/usr/lib/mailman/Mailman/Cgi/private.py", line 42, 
>in true_path
>admin(1853):     parts = [x for x in path.split(SLASH) if x not in ('.', 
>admin(1853): NameError: global name 'SLASH' is not defined
>here's the source:
>def true_path(path):
>     "Ensure that the path is safe by removing .."
>     parts = [x for x in path.split(SLASH) if x not in ('.', '..')]
>     return '/'.join(parts)[1:]
>What do the learned developers think of replacing SLASH with '/' or 
>something?  I'm just guessing here...

It appears that someone attempted to apply the patch at
http://www.list.org/CAN-2005-0202.txt or some other version thereof
and has left out the definition of SLASH. See the above URL for the
full patch.

Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list