Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [Security] Regex in custom profile field causes error
#1
Not Solved Exclamation 
I've created a custom profile field called "Discord username" with the following Regular Expression: ^[^#]{2,32}#\d{4}$ (https://i.imgur.com/yy0VpKE.png)



Forum URL: https://lifepunch.net/forums



When users try to create a new account, even if they enter a value that respects the Regex (such as hello#1234) it will error.



If a user tries to edit their profile and add any value under Discord username, the following error appears at the top of the page; https://i.imgur.com/3NIPp6Q.png



This is a new installation of 1.8.21



For now, I've removed the REGEX from that custom profile field and things are working fine.
Reply
#2
Not Solved
MyBB uses # as the regex delimiter internally, so escape it with a backslash:
^[^\#]{2,32}\#\d{4}$
devilshakerz.com/pgp (DF3A 34D9 A627 42E5 BC6A 6750 1F2F B8AA 28FF E1BC) ▪ keybase.io/devilshakerz
Reply
#3
Not Solved
Excellent, thank you! Smile
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)