Changeset 13751 in webkit
- Timestamp:
- Apr 9, 2006 9:40:28 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r13748 r13751 1 2006-04-09 Alexey Proskuryakov <ap@nypop.com> 2 3 Reviewed by Darin. 4 5 - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7877 6 XMLHttpRequest ignores username/password passed to open() 7 8 * http/tests/xmlhttprequest/basic-auth-expected.txt: Added. 9 * http/tests/xmlhttprequest/basic-auth.html: Added. 10 * http/tests/xmlhttprequest/resources/basic-auth.php: Added. 11 1 12 2006-04-09 Darin Adler <darin@apple.com> 2 13 -
trunk/WebCore/ChangeLog
r13748 r13751 1 2006-04-09 Alexey Proskuryakov <ap@nypop.com> 2 3 Reviewed by Darin. 4 5 - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7877 6 XMLHttpRequest ignores username/password passed to open() 7 8 Test: http/tests/xmlhttprequest/basic-auth.html 9 10 * platform/KURL.cpp: 11 (KURL::setUser): Enable a code path that handles non-empty user name - 12 it was already present, but commented out and protected with an assertion. 13 (KURL::setPass): Ditto. 14 1 15 2006-04-09 Darin Adler <darin@apple.com> 2 16 -
trunk/WebCore/platform/KURL.cpp
r13577 r13751 606 606 int end = userEndPos; 607 607 if (!user.isEmpty()) { 608 // Untested code, but this is never used.609 ASSERT_NOT_REACHED();610 #if 0611 608 u = user; 612 if (userStartPos == schemeEndPos + 1) {609 if (userStartPos == schemeEndPos + 1) 613 610 u = "//" + u; 614 }615 611 // Add '@' if we didn't have one before. 616 if (end == hostEndPos || (end == passwordEndPos && urlString[end] != '@')) {612 if (end == hostEndPos || (end == passwordEndPos && urlString[end] != '@')) 617 613 u += '@'; 618 }619 #endif620 614 } else { 621 615 // Remove '@' if we now have neither user nor password. 622 if (userEndPos == passwordEndPos && end != hostEndPos && urlString[end] == '@') {616 if (userEndPos == passwordEndPos && end != hostEndPos && urlString[end] == '@') 623 617 end += 1; 624 }625 618 } 626 619 const DeprecatedString newURL = urlString.left(userStartPos) + u + urlString.mid(end); … … 635 628 int end = passwordEndPos; 636 629 if (!password.isEmpty()) { 637 // Untested code, but this is never used.638 ASSERT_NOT_REACHED();639 #if 0640 630 p = ':' + password + '@'; 641 if (userEndPos == schemeEndPos + 1) {631 if (userEndPos == schemeEndPos + 1) 642 632 p = "//" + p; 643 }644 633 // Eat the existing '@' since we are going to add our own. 645 if (end != hostEndPos && urlString[end] == '@') {634 if (end != hostEndPos && urlString[end] == '@') 646 635 end += 1; 647 }648 #endif649 636 } else { 650 637 // Remove '@' if we now have neither user nor password. 651 if (userStartPos == userEndPos && end != hostEndPos && urlString[end] == '@') {638 if (userStartPos == userEndPos && end != hostEndPos && urlString[end] == '@') 652 639 end += 1; 653 }654 640 } 655 641 const DeprecatedString newURL = urlString.left(userEndPos) + p + urlString.mid(end);
Note: See TracChangeset
for help on using the changeset viewer.