Skip to content

Commit

Permalink
Allow cookies to be set on .gov.uk domains too...
Browse files Browse the repository at this point in the history
  • Loading branch information
PledgeBank committed Nov 26, 2014
1 parent ed0ece0 commit 2ec5b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phplib/person.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function person_cookie_domain() {
$httphost = $_SERVER['HTTP_HOST'];
# XXX there must be a better way of doing this. (Also, the .livesimply
# entry is for Francis's local test domain pledge.livesimply)
if (preg_match("/[^.]+(\.com|\.cat|\.org|\.net|\.co\.uk|\.org\.uk|\.livesimply)$/", $httphost, $matches)) {
if (preg_match("/[^.]+(\.com|\.cat|\.org|\.net|\.co\.uk|\.gov\.uk|\.org\.uk|\.livesimply)$/", $httphost, $matches)) {
return "." . $matches[0];
} else {
return '.' . OPTION_WEB_DOMAIN;
Expand Down

0 comments on commit 2ec5b5a

Please sign in to comment.