|
@@ 43-48 (lines=6) @@
|
| 40 |
|
$cookie .= 'HttpOnly; '; |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
if ( ! empty( $options['domain'] ) && is_string( $options['domain'] ) ) { |
| 44 |
|
if ( strpbrk( $options['domain'], false !== $not_allowed_chars ) ) { |
| 45 |
|
return false; |
| 46 |
|
} |
| 47 |
|
$cookie .= sprintf( 'domain=%s', $options['domain'] . '; ' ); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
if ( ! empty( $options['path'] ) && is_string( $options['path'] ) ) { |
| 51 |
|
if ( strpbrk( $options['path'], false !== $not_allowed_chars ) ) { |
|
@@ 50-55 (lines=6) @@
|
| 47 |
|
$cookie .= sprintf( 'domain=%s', $options['domain'] . '; ' ); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
if ( ! empty( $options['path'] ) && is_string( $options['path'] ) ) { |
| 51 |
|
if ( strpbrk( $options['path'], false !== $not_allowed_chars ) ) { |
| 52 |
|
return false; |
| 53 |
|
} |
| 54 |
|
$cookie .= sprintf( 'path=%s', $options['path'] . '; ' ); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
if ( ! empty( $options['samesite'] ) && is_string( $options['samesite'] ) ) { |
| 58 |
|
$cookie .= sprintf( 'SameSite=%s', $options['samesite'] . '; ' ); |