I'm looking at the cas.adminPagesSecurity.ip property setting in the Maven
overlay, which comes set as follows:

cas.adminPagesSecurity.ip=127\.0\.0\.1

But since the backslash is a special character in Java properties files,
shouldn't that be:

cas.adminPagesSecurity.ip=127\\.0\\.0\\.1

so that the backslash makes it into the regular expression (making the '.'
match a '.' instead of any character)?

I could've sworn it used to be that way in the overlay (and it jumped out
at me as a potential mistake in the regular expression I replaced it with),
but now, checking everything I can find, it seems that it was never that
way (or at least not any time recently).

The only other example of a regular expression in the properties file I can
find in the documentation is this one:

cas.authn.pm.policyPattern=^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[$@$!%*?&])[A-Za-z\\d$@$!%*?&]{8,10}


Am I confused? Should it be single backslashes, or double?

--Dave

--

DAVID A. CURRY, CISSP
*DIRECTOR OF INFORMATION SECURITY*
INFORMATION TECHNOLOGY

71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
+1 212 229-5300 x4728 • [email protected]

[image: The New School]

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XAOjJ1ks2hdnUvD-30cvnrjz9JOh%2BFxSp7ghKdnMZO9x6w%40mail.gmail.com.

Reply via email to