Another local simple string.
This commit is contained in:
@ -339,7 +339,7 @@ static void File_info2html(ClientInfo *client, FileInfo *finfo, int n)
|
||||
int size;
|
||||
const char *sizeunits;
|
||||
char namebuf[MAXNAMESIZE + 1];
|
||||
char *Uref, *HUref, *Hname;
|
||||
char *HUref, *Hname;
|
||||
const char *ref, *filecont, *name = finfo->filename;
|
||||
|
||||
if (finfo->size <= 9999) {
|
||||
@ -373,8 +373,8 @@ static void File_info2html(ClientInfo *client, FileInfo *finfo, int n)
|
||||
}
|
||||
|
||||
/* escape problematic filenames */
|
||||
Uref = dStrdup( Escape_uri_str(ref, NULL).c_str() );
|
||||
HUref = Escape_html_str(Uref);
|
||||
const std::string Uref = Escape_uri_str(ref, NULL);
|
||||
HUref = Escape_html_str(Uref.c_str());
|
||||
Hname = Escape_html_str(name);
|
||||
|
||||
if (client->old_style) {
|
||||
@ -401,7 +401,6 @@ static void File_info2html(ClientInfo *client, FileInfo *finfo, int n)
|
||||
|
||||
dFree(Hname);
|
||||
dFree(HUref);
|
||||
dFree(Uref);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user