]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
bbc27441 AJ |
3 | * |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
ff9d9458 FC |
9 | #ifndef SQUID_SRC_FORMAT_QUOTING_H |
10 | #define SQUID_SRC_FORMAT_QUOTING_H | |
20efa1c2 | 11 | |
38e16f92 | 12 | namespace Format |
20efa1c2 AJ |
13 | { |
14 | ||
15 | /// Safely URL-encode a username. | |
16 | /// Accepts NULL or empty strings. | |
8a648e8d | 17 | char * QuoteUrlEncodeUsername(const char *name); |
20efa1c2 AJ |
18 | |
19 | /** URL-style encoding on a MIME headers blob. | |
20 | * May accept NULL or empty strings. | |
21 | * \return A dynamically allocated string. recipient is responsible for free()'ing | |
22 | */ | |
8a648e8d | 23 | char *QuoteMimeBlob(const char *header); |
20efa1c2 | 24 | |
38e16f92 | 25 | }; // namespace Format |
20efa1c2 | 26 | |
ff9d9458 | 27 | #endif /* SQUID_SRC_FORMAT_QUOTING_H */ |
f53969cc | 28 |