Skip to content

Fix RemoteSyslogChannel setProperty value check#4339

Merged
aleks-f merged 1 commit intopocoproject:develfrom
teksturi:fix_syslog_setproperty
Dec 13, 2023
Merged

Fix RemoteSyslogChannel setProperty value check#4339
aleks-f merged 1 commit intopocoproject:develfrom
teksturi:fix_syslog_setproperty

Conversation

@teksturi
Copy link
Copy Markdown
Contributor

In RemoteSyslogChannel::setProperty we compare just 4 first letters. So if value would have example be syslevel then this function would work wrong. Nothing major but nice to fix.

We compare just 4 first letters. So if value would have example be
syslevel then this function would work wrong. Nothing major but nice to
fix.
@teksturi
Copy link
Copy Markdown
Contributor Author

teksturi commented Dec 12, 2023

Kinda better fix imo would be to make also iStartsWith() and iEndsWith(). This kind of situation would not happen with those. If wanted I can do those also and use those where needed. At least we have missed those in our project where Poco is used. Now we use those from other libraries.

@aleks-f aleks-f added this to the Release 1.13.0 milestone Dec 13, 2023
@aleks-f aleks-f merged commit 46759ca into pocoproject:devel Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants