[Bug 16287] New: InternetCreateUrl does not encode URL_COMPONENTS.lpszExtraInfo

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Nov 30 10:57:01 CST 2008


           Summary: InternetCreateUrl does not encode
           Product: Wine
           Version: 1.1.9
          Platform: Other
        OS/Version: other
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wininet
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: dank at kegel.com

[Copied from bug 16269, whose original poster left in a huff when
I asked which app this was, and kept closing the bug.]

InternetCreateUrl does not encode URL_COMPONENTS.lpszExtraInfo it just ignore
this value.

How to reproduce (I tried to write a C++ code, but since I code C++ very rarely
please excuse small syntax problems):

char[128] URL;

ZeroMemory(&URLComponents, SizeOf(URLComponents));
URLComponents.lpszScheme = 'http';
URLComponents.dwSchemeLength = strlen(URLComponents.lpszExtraInfo);
URLComponents.lpszHostName = 'localhost';
URLComponents.dwHostNameLength = strlen(URLComponents.lpszExtraInfo);
URLComponents.nPort = 80;
URLComponents.lpszUrlPath = '/';
URLComponents.dwUrlPathLength = strlen(URLComponents.lpszUrlPath);
URLComponents.lpszExtraInfo = '?test=123';
URLComponents.dwExtraInfoLength = strlen(URLComponents.lpszExtraInfo);

Size = 128;
InternetCreateUrl(URLComponents, ICU_ESCAPE, URL, Size);

URL has the value 'http://localhost/' instead of 'http://localhost/?test=123'
under Microsoft Windows.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list