I doubt these are going to change, and it's probably more secure to use
things that will make PHP fall over and die if they're changed by some
remote execution. If the URLs do change, you can just release a new
version of the module (which you would have to do anyway, presumably).
I can't remember if PHP lets you chain 'protected final static'
together, or if it can only be 'final static' but either way nets you
the same result. It's pedantic, but secure development sometimes is :-)
Matt.
Ingo, perhaps it could also add a recaptcha field/option to
userdefinedform and you could document or add a feature on how to easily
add it to forum or blog posts. (Doesn't blog have a method to choose the
type of spam-preventing?)
bet you're wishing you never did this now! :P
Will blog... :)
Sig
Stuff is that it takes us away from PHP code's ability to be
programatically powerful; there's no logic you can wrap around that. Do
the benefits of the above syntax outweigh limiting your flexibility?
Sig
--
Thanks,
Sigurd
--
Sigurd Magnusson | Chief Marketing Officer
SilverStripe
http://www.silverstripe.com
Office: +64 4 978 7332
Cell: +64 21 42 12 08 (NZ), or 503 475 1928 (USA)
Skype: sigurdmagnusson
We're finalists in the global Packt Publishing CMS Awards! If you like our free software, then we'd appreciate a vote:
http://www.packtpub.com/article/most-promising-open-source-cms-award-final-silverstripe