[Bps-public-commit] SD branch, master, updated. d0f4da82acf88db9c5538fcacd167c190d30c565
spang at bestpractical.com
spang at bestpractical.com
Mon Aug 24 14:26:05 EDT 2009
The branch, master has been updated
via d0f4da82acf88db9c5538fcacd167c190d30c565 (commit)
from b182620ae89fedce08fb12151aaeeeb20c3da053 (commit)
Summary of changes:
lib/App/SD/Server/Dispatcher.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit d0f4da82acf88db9c5538fcacd167c190d30c565
Author: Christine Spang <spang at bestpractical.com>
Date: Mon Aug 24 19:24:00 2009 +0100
Use ne when comparing against a string
diff --git a/lib/App/SD/Server/Dispatcher.pm b/lib/App/SD/Server/Dispatcher.pm
index 61494ae..3c4e46b 100644
--- a/lib/App/SD/Server/Dispatcher.pm
+++ b/lib/App/SD/Server/Dispatcher.pm
@@ -56,7 +56,7 @@ under { method => 'POST' } => sub {
# reject edits from non-localhost
on qr'.' => sub {
my $self = shift;
- if ( $self->server->cgi->remote_host() != '127.0.0.1' ) {
+ if ( $self->server->cgi->remote_host() ne '127.0.0.1' ) {
$self->server->_send_401;
}
else {
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list