You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by GitBox <gi...@apache.org> on 2020/03/30 21:15:13 UTC
[GitHub] [shiro] bdemers commented on issue #209: [SHIRO-530] INI parser does not properly handled backslashes at end o…
bdemers commented on issue #209: [SHIRO-530] INI parser does not properly handled backslashes at end o…
URL: https://github.com/apache/shiro/pull/209#issuecomment-606253816
From SHIRO-530, it looks like we have:
|example (as input) | result (as java string) |
|--------|------|
| `key=value\` | `key=value\n` |
| `key=value\\` | `key=value\\` |
| `key=value\\\` | `key=value\\` |
| `key=value\\\\` | `key=value\\\\` |
I would _expect_ the result to be:
|example (as input) | result (as java string) |
|--------|------|
| `key=value\` | `key=value\n` |
| `key=value\\` | `key=value\\` |
| `key=value\\\` | `key=value\\\n` |
| `key=value\\\\` | `key=value\\\\` |
As for `"Truth\\=Beauty"`, I would _expect_ that that to be some sort of error or at least a key with no value similar to:
```ini
[foobar]
one=one
justAKeyWithoutValue
```
I'm not saying this is the way it does function, or _should_ just what I personally would expect. (not sure if that helps or hurts this conversation)
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services