mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
AK+Everywhere: Replace usages of URLParser::urlencode() and urldecode()
This replaces all occurrences of those functions with the newly implemented functions URL::percent_encode() and URL::percent_decode(). The old functions will be removed in a further commit.
This commit is contained in:
parent
2a6c9bc5f7
commit
a603e69599
5 changed files with 9 additions and 11 deletions
|
@ -11,7 +11,7 @@
|
|||
#include <AK/MappedFile.h>
|
||||
#include <AK/MemoryStream.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <AK/URLParser.h>
|
||||
#include <AK/URL.h>
|
||||
#include <LibCore/DateTime.h>
|
||||
#include <LibCore/DirIterator.h>
|
||||
#include <LibCore/File.h>
|
||||
|
@ -223,7 +223,7 @@ void Client::handle_directory_listing(const String& requested_path, const String
|
|||
builder.append("<tr>");
|
||||
builder.appendff("<td><div class=\"{}\"></div></td>", is_directory ? "folder" : "file");
|
||||
builder.append("<td><a href=\"");
|
||||
builder.append(urlencode(name));
|
||||
builder.append(URL::percent_encode(name));
|
||||
builder.append("\">");
|
||||
builder.append(escape_html_entities(name));
|
||||
builder.append("</a></td><td> </td>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue