aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatthew <matthew>2008-04-03 17:28:43 +0000
committermatthew <matthew>2008-04-03 17:28:43 +0000
commitc1171874e297f00cd271ff434b7ae512c8995d5d (patch)
tree027e556df25ecec785bfd8413907c5c850d1d41f
parent6934be59ed3d44fdde86cefdaef47ad2556e59a9 (diff)
Presumably the complaints will change to cries of censorship.
-rwxr-xr-xweb/index.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi
index 157b8df44..5972c10e9 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: index.cgi,v 1.186 2008-04-03 16:18:37 matthew Exp $
+# $Id: index.cgi,v 1.187 2008-04-03 17:28:43 matthew Exp $
use strict;
use Standard;
@@ -230,6 +230,7 @@ sub submit_problem {
for (qw(title detail)) {
$input{$_} = lc $input{$_} if $input{$_} !~ /[a-z]/;
$input{$_} = ucfirst $input{$_};
+ $input{$_} =~ s/\b(dog\s*)shit\b/$1poo/ig;
}
my @errors;