0byt3m1n1
Path:
/
data
/
40
/
5
/
122
/
64
/
5448064
/
user
/
6519071
/
htdocs
/
wp-content
/
plugins
/
redirection
/
matches
/
[
Home
]
File: cookie.php
<?php require_once dirname( __FILE__ ) . '/http-header.php'; /** * Check that a cookie value exists */ class Cookie_Match extends Header_Match { public function name() { return __( 'URL and cookie', 'redirection' ); } public function is_match( $url ) { if ( $this->regex ) { $regex = new Red_Regex( $this->value, true ); return $regex->is_match( Redirection_Request::get_cookie( $this->name ) ); } return Redirection_Request::get_cookie( $this->name ) === $this->value; } }