зеркало из https://github.com/mozilla/gecko-dev.git
Adds a '..' to children directories. r=dougt@netscape.com
This commit is contained in:
Родитель
c6c8eaa18f
Коммит
02921f234e
|
@ -70,6 +70,14 @@ nsIndexedToHTML::OnStartRequest(nsIRequest* request, nsISupports *aContext)
|
|||
buffer.AppendWithConversion("<hr><table border=0>\n");
|
||||
|
||||
// buffer.AppendWithConversion("<tr><th>Name</th><th>Size</th><th>Last modified</th><th>Description</th></tr>\n"); //FIX i18n.
|
||||
|
||||
const char * path = mCurrentPath.get();
|
||||
if (path && *path && path[1] != '\0')
|
||||
{
|
||||
buffer.AppendWithConversion("<tr>\n <td><a HREF=\"");
|
||||
buffer.AppendWithConversion(mCurrentPath);
|
||||
buffer.AppendWithConversion("/../\"> ..</a></td>\n");
|
||||
}
|
||||
|
||||
// Push buffer to the listener now, so the initial HTML will not
|
||||
// be parsed in OnDataAvailable().
|
||||
|
|
Загрузка…
Ссылка в новой задаче