# defender-security/6.2.0/src/helper/class-request.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 6.2.0. 28 lines.

- Page: https://pluginprobe.com/plugins/defender-security/6.2.0/code/src/helper/class-request.php
- Raw: https://pluginprobe.com/plugins/defender-security/6.2.0/raw/src/helper/class-request.php
- Modified: 2025-04-14T10:42:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/6.2.0/code/src/helper/class-request.php#L10-L20`.

```php
<?php
/**
 * Request Helper.
 *
 * This helper class provides utility methods for handling HTTP requests.
 *
 * @package WP_Defender\Helper
 */

namespace WP_Defender\Helper;

/**
 * Request Helper Class.
 */
class Request {
	/**
	 * Get the current request URI.
	 *
	 * @return string
	 */
	public static function get_request_uri(): string {
		// Don't use defender_get_data_from_request() for fetching REQUEST_URI.
		return isset( $_SERVER['REQUEST_URI'] )
			? urldecode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
			: '';
	}
}

```
