PolicyKit: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Wed Nov 21 18:38:44 PST 2007


 src/kit/kit-string.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 5fe40c1422cb04d2ba37e5b07cf969c1a6f7f59c
Author: David Zeuthen <davidz at redhat.com>
Date:   Wed Nov 21 21:38:08 2007 -0500

    also encode \n\r\t characters

diff --git a/src/kit/kit-string.c b/src/kit/kit-string.c
index 29dcf03..2b3d772 100644
--- a/src/kit/kit-string.c
+++ b/src/kit/kit-string.c
@@ -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


More information about the hal-commit mailing list