Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Zbigniew Jędrzejewski-Szmek
polkit
Commits
5fe40c14
Commit
5fe40c14
authored
Nov 21, 2007
by
David Zeuthen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
also encode \n\r\t characters
parent
f8624198
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/kit/kit-string.c
src/kit/kit-string.c
+5
-5
No files found.
src/kit/kit-string.c
View file @
5fe40c14
...
...
@@ -373,7 +373,7 @@ static kit_bool_t
_is_reserved
(
char
c
)
{
unsigned
int
n
;
char
reserved
[]
=
" !*'();:@&=+$,/?%#[]"
;
char
reserved
[]
=
" !*'();:@&=+$,/?%#[]
\n\r\t
"
;
for
(
n
=
0
;
n
<
sizeof
(
reserved
);
n
++
)
{
if
(
reserved
[
n
]
==
c
)
...
...
@@ -399,10 +399,10 @@ _to_hex (unsigned int nibble)
* @s: string to encode
*
* Percent encodes a string; each occurence of an ASCII characters in
* the set <literal>" !*'();:@&=+$,/?%#[]"</literal> will be
replaced
* by a three character sequence started by the percent sign
"%" and
* then the hexidecimal representation of the ASCII character
in
* question.
* the set <literal>" !*'();:@&=+$,/?%#[]
\n\r\t
"</literal> will be
*
replaced
by a three character sequence started by the percent sign
*
"%" and
then the hexidecimal representation of the ASCII character
*
in
question.
*
* Returns: This function do not write more than @buf_size bytes
* (including the trailing zero). If the output was truncated due to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment