]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/auth/digest/Config.cc
Cleanup: rename String::limitInit() to assign() (#488)
[thirdparty/squid.git] / src / auth / digest / Config.cc
index 67498d0bf9c5b3ff25ed6d943164bd280d21f206..8621d8eb9fee6433e2451bd7e2c102f07cea3f2f 100644 (file)
@@ -777,16 +777,16 @@ Auth::Digest::Config::decode(char const *proxy_auth, const char *aRequestRealm)
                 // domain is Special. Not a quoted-string, must not be de-quoted. But is wrapped in '"'
                 // BUG 3077: uri= can also be sent to us in a mangled (invalid!) form like domain
                 if (vlen > 1 && *p == '"' && *(p + vlen -1) == '"') {
-                    value.limitInit(p+1, vlen-2);
+                    value.assign(p+1, vlen-2);
                 }
             } else if (keyName == SBuf("qop",3)) {
                 // qop is more special.
                 // On request this must not be quoted-string de-quoted. But is several values wrapped in '"'
                 // On response this is a single un-quoted token.
                 if (vlen > 1 && *p == '"' && *(p + vlen -1) == '"') {
-                    value.limitInit(p+1, vlen-2);
+                    value.assign(p+1, vlen-2);
                 } else {
-                    value.limitInit(p, vlen);
+                    value.assign(p, vlen);
                 }
             } else if (*p == '"') {
                 if (!httpHeaderParseQuotedString(p, vlen, &value)) {
@@ -794,7 +794,7 @@ Auth::Digest::Config::decode(char const *proxy_auth, const char *aRequestRealm)
                     continue;
                 }
             } else {
-                value.limitInit(p, vlen);
+                value.assign(p, vlen);
             }
         } else {
             debugs(29, 9, "Failed to parse attribute '" << item << "' in '" << temp << "'");