Changeset 723


Ignore:
Timestamp:
01/16/12 22:56:40 (4 months ago)
Author:
shiretu
Message:

-- fixed a nasty URI parsing bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/common/src/utils/misc/uri.cpp

    r690 r723  
    102102        bool hasAuthentication = false; 
    103103        pos = stringUri.find("@", cursor); 
    104         if (pos != string::npos) { 
     104        if (pos != string::npos && pos < limit) { 
    105105                if (limit != string::npos) { 
    106106                        hasAuthentication = pos<limit; 
Note: See TracChangeset for help on using the changeset viewer.