SimplePie_HTTP_Parser::quote

Advertisement

Summery Summery

See what state to move to while within quoted header values

Syntax Syntax

SimplePie_HTTP_Parser::quote()

Source Source

File: wp-includes/SimplePie/HTTP/Parser.php

		{
			$this->linear_whitespace();
		}
		else
		{
			switch ($this->data[$this->position])
			{
				case '"':
					$this->position++;
					$this->state = 'value';
					break;

				case "\x0A":
					$this->position++;
					$this->state = 'new_line';
					break;

				case '\\':
					$this->position++;
					$this->state = 'quote_escaped';
					break;

				default:
					$this->state = 'quote_char';
					break;
			}
		}
	}

	/**
	 * Parse a header value while within quotes

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.