todmorrison edited a comment on pull request #286:
URL: https://github.com/apache/shiro/pull/286#issuecomment-819829577


   This is a cleaner way and should fix up the "escaped escape-char" case (i.e. 
handle "//" as a single "/")
   
   ```
   if (buildingKey) {
     // Given that isCharEscaped actually means isEscapeChar, the middle case 
is always true.
     // if (isKeyValueSeparatorChar(c) && !isCharEscaped(line, i) && 
!isCharEscaped(line, i-1)) {
        if (isKeyValueSeparatorChar(c) &&  !isCharEscaped(line, i-1)) {
            buildingKey = false;//now start building the value
        } else if (!isCharEscaped(line, i) || !isCharEscaped(line, i-1) ){    
// Allow escaped escape character
             keyBuffer.append(c);
    }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to