Quote filenames in several places.
Thu Feb 23 18:51:21 UTC 2006 Alberto Bertogli <albertogli@telpin.com.ar>
* Quote filenames in several places.
There were several places using filenames in URLs without quoting them
properly, this fixes them.
Thanks to VMiklos for the report.
{
hunk ./darcsweb.cgi 358
+ f = urllib.quote(f)
hunk ./darcsweb.cgi 1611
- %(file)s</a>
+ %(fname)s</a>
hunk ./darcsweb.cgi 1616
- 'file': f
+ 'file': urllib.quote(f),
+ 'fname': escape(f),
hunk ./darcsweb.cgi 1667
- 'file': f
+ 'file': urllib.quote(f)
hunk ./darcsweb.cgi 1692
- (config.myreponame, escape(sofar), p)
+ (config.myreponame, urllib.quote(sofar), p)
hunk ./darcsweb.cgi 1726
+ fullf = filter_file(dname + '/' + f)
hunk ./darcsweb.cgi 1732
- <td><a class="list" href="%(myrname)s;a=tree;f=%(newf)s">%(f)s</a></td>
+ <td><a class="list" href="%(myrname)s;a=tree;f=%(fullf)s">%(f)s</a></td>
hunk ./darcsweb.cgi 1734
- <a href="%(myrname)s;a=filehistory;f=%(newf)s">history</a> |
- <a href="%(myrname)s;a=tree;f=%(newf)s">tree</a>
+ <a href="%(myrname)s;a=filehistory;f=%(fullf)s">history</a> |
+ <a href="%(myrname)s;a=tree;f=%(fullf)s">tree</a>
hunk ./darcsweb.cgi 1740
- 'newf': filter_file(dname + '/' + f),
+ 'fullf': urllib.quote(fullf),
hunk ./darcsweb.cgi 1753
- 'fullf': filter_file(dname + '/' + f),
+ 'fullf': urllib.quote(fullf),
}