Commit Graph

14 Commits

Author SHA1 Message Date
Alex Schroeder
e6d3ad8382 Fixed typo in AddModuleDescription sub name 2014-08-21 22:23:23 +02:00
Alex Schroeder
17bd795ef0 Automatically reformatted modules 2014-08-21 07:29:46 +03:00
Alex Schroeder
77dc34059a Don't store host names.
Get rid of the option $UseLookup. Remove GetRemoteHost and rename
GetRemoteAddress to GetRemoteHost. Thus, it now returns IP number only.
2014-07-11 19:09:33 +02:00
Alex Schroeder
fcb6103ca0 Use a function instead of $ENV{REMOTE_ADDR}
When the webserver is behind a reverse proxy, $ENV{REMOTE_ADDR} is not
the actual remote client's address but the reverse proxy's address. The
actual remote client's address is available from an environment
variable. The name of this variable depends on the proxy, e.g. pound
uses $ENV{HTTP_X_FORWARDED_FOR}.

As suggested by tyatsumi on the wiki, all access $ENV{REMOTE_ADDR} now
happens via a new function which allows users to override it in their
config file.
2014-06-16 09:50:05 +02:00
Alex Schroeder
8385ac5f74 ReCAPTCHA introduced HTML escaping problems. 2013-10-20 20:27:12 +02:00
Alex Schroeder
dd17419c4d Avoid the use of $q->hidden() and use $q->input and GetParam() instead. 2013-10-09 23:09:47 +02:00
Alex Schroeder
2d6b2d6a71 Remove $HttpCharset and moved everything to UTF-8
This also required some changes to the tests where explicit UTF-8
encoding had been used in the past.
2012-05-22 11:50:23 +02:00
Alex Schroeder
c9e39a4c19 getting rid of $Id$ tags in $WikiDescription
Replaced the $Id$ tags in $WikiDescription for all the modules and wiki.pl itself with a link to the source and an appropriate wiki page, if possible. This is shown in action=version and should help users figure out what another wiki has installed.
2012-04-19 02:18:45 +02:00
Alex Schroeder
2f75bbac87 * modules/recaptcha.pl (ReCaptchaQuestionAddTo): Patched with a
Wiki-provided correction, courtesy Bayle Shanks. Apparently, the
previous regular expression in this function failed to match the
Comment form's HTML. This patch corrects that! The reCAPTCHA widget
is now properly displayed by both the Comment and Edit forms.
Thanks, Bayle. (http://bayleshanks.com)
2008-11-27 06:00:25 +00:00
Alex Schroeder
4a8b8cf69f (NewReCaptchaDoPost): Prevent display of the reCAPTCHA if an administrator. 2008-09-29 11:53:33 +00:00
Alex Schroeder
b6148f2f80 * modules/recaptcha.pl: New perldoc-style documentation.
($ReCaptchaTheme): New option.
($ReCaptchaTabIndex): New option.
(ReCaptchaGetQuestionHtml): New function. Permits site-specific
customization of module-emitted HTML and CSS.
(ReCaptchaGetQuestion): Rewritten so as to leverage the two new options and
one new function.
2008-09-29 07:33:32 +00:00
Alex Schroeder
79a05812b9 (NewReCaptchaDoPost): Prevent a preview
from setting the cookie analogous to the questionasker.pl edit
dated 2008-06-11.
2008-09-10 09:51:33 +00:00
Alex Schroeder
9a00b58c92 (QuestionAddTo): Use $ReCaptchaSecretKey
instead of 'question'.
(NewReCaptchaDoPost, NewReCaptchaDoPost, ReCaptchaQuestionAddTo):
Renamed QuestionAddTo to ReCaptchaQuestionAddTo.
2008-09-06 13:07:12 +00:00
Alex Schroeder
502d764271 Initial add of reCAPTCHA (http://recaptcha.net/) module. Works! 2008-03-06 04:49:42 +00:00