Security fixes for PR announcer

Thanks @Giacom for the info!
PR announcer is now able to authenticate with Nickserv.
Communications key moved out of config controller.
Even better Regex validation.
Reading now has even more exception handling.
This commit is contained in:
VistaPOWA
2014-04-21 10:51:04 +02:00
parent d8ba9886fa
commit 9c3f31d86b
7 changed files with 63 additions and 31 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ var/next_external_rsc = 0
if(holder)
add_admin_verbs()
admin_memo_show()
if((config.comms_key == "default_pwd" || length(config.comms_key) <= 6) && config.comms_allowed) //It's the default value or less than 6 characters long, but it somehow didn't disable comms.
if((global.comms_key == "default_pwd" || length(global.comms_key) <= 6) && global.comms_allowed) //It's the default value or less than 6 characters long, but it somehow didn't disable comms.
src << "<span class='danger'>The server's API key is either too short or is the default value! Consider changing it immediately!</span>"
log_client_to_db()