Skip to content

Commit

Permalink
Bump version & bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiz committed Apr 8, 2017
1 parent 0a189f5 commit 6229998
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# v1.3.1 #

- No new features

## Bugfixes ##

- Don't specify a domain when setting cookies. This allows 411 to work when the hostname doesn't match the site configuration.


# v1.3.0 #

- Support for ES5.0
Expand Down
2 changes: 1 addition & 1 deletion phplib/411bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
date_default_timezone_set("UTC");

define('BASE_DIR', realpath(__DIR__ . '/..'));
define('VERSION', '1.3.0');
define('VERSION', '1.3.1');

// Set up autoloader for our classes.
spl_autoload_register(function($class) {
Expand Down
3 changes: 1 addition & 2 deletions phplib/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,13 @@ public static function generate($data, $date) {
*/
public static function write() {
$site = SiteFinder::getCurrent();
$domain = explode(':', $site['host'])[0];
if(self::$write && self::$dirty && Auth::isCookie()) {
$expiry = $_SERVER['REQUEST_TIME'] + self::COOKIE_LIFETIME;
setcookie(
self::COOKIE_KEY,
self::generate(self::$cache, $_SERVER['REQUEST_TIME']),
$expiry,
'/', $domain,
'/', '',
false, true
);
}
Expand Down

0 comments on commit 6229998

Please sign in to comment.