Skip to content

Commit

Permalink
2023-01-12 11:47 - v2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisOuellet committed Jan 12, 2023
1 parent b0a1754 commit 4b822ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.2
2.3.3
2 changes: 2 additions & 0 deletions src/phpAUTH.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ public function setCookie($name, $data = null, $options = []){
$defaults[$key] = $value;
}
}
if($data == null){ $data = ''; }
if(is_array($data)){ $data = json_encode($data,JSON_UNESCAPED_SLASHES); }
setcookie($name, $data, $defaults);
}

Expand Down

0 comments on commit 4b822ff

Please sign in to comment.