]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
tab vs space
authorChristophe Jaillet <jailletc36@apache.org>
Wed, 22 Oct 2014 05:12:51 +0000 (05:12 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Wed, 22 Oct 2014 05:12:51 +0000 (05:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1633525 13f79535-47bb-0310-9956-ffa450edef68

server/apreq_util.c

index 7f196a7607f162460d8459f81f650201e5561687..f2527cfc345395758a9b255c697e04e971f1da7b 100644 (file)
@@ -98,13 +98,13 @@ APREQ_DECLARE(apr_ssize_t ) apreq_index(const char* hay, apr_size_t hlen,
     const char *begin = hay;
 
     while ( (hay = memchr(hay, ndl[0], len)) ) {
-       len = end - hay;
+        len = end - hay;
 
-       /* done if matches up to capacity of buffer */
-       if ( memcmp(hay, ndl, MIN(nlen, len)) == 0 ) {
+        /* done if matches up to capacity of buffer */
+        if ( memcmp(hay, ndl, MIN(nlen, len)) == 0 ) {
             if (type == APREQ_MATCH_FULL && len < nlen)
                 hay = NULL;     /* insufficient room for match */
-           break;
+            break;
         }
         --len;
         ++hay;
@@ -365,11 +365,10 @@ static apr_status_t url_decode(char *dest, apr_size_t *dlen,
             break;
 
         case '%':
-           if (s + 2 < end && apr_isxdigit(s[1]) && apr_isxdigit(s[2]))
-            {
+            if (s + 2 < end && apr_isxdigit(s[1]) && apr_isxdigit(s[2])) {
                 *d = hex2_to_char(s + 1);
                 s += 2;
-           }
+            }
             else if (s + 5 < end && (s[1] == 'u' || s[1] == 'U') &&
                      apr_isxdigit(s[2]) && apr_isxdigit(s[3]) &&
                      apr_isxdigit(s[4]) && apr_isxdigit(s[5]))
@@ -390,7 +389,7 @@ static apr_status_t url_decode(char *dest, apr_size_t *dlen,
                 }
                 s += 5;
             }
-           else {
+            else {
                 *dlen = d - start;
                 *slen = s - src;
                 if (s + 5 < end
@@ -405,7 +404,7 @@ static apr_status_t url_decode(char *dest, apr_size_t *dlen,
                 memmove(d, s, end - s);
                 d[end - s] = 0;
                 return APR_INCOMPLETE;
-           }
+            }
             break;
 
         default: