PHPMailer::isPermittedPath

Advertisement

Summery Summery

Check whether a file path is of a permitted type.

Syntax Syntax

PHPMailer::isPermittedPath( string $path )

Description Description

Used to reject URLs and phar files from functions that access local file paths, such as addAttachment.

Parameters Parameters

$path

(string) (Required) A relative or absolute path to a file.

Return Return

(bool)

Source Source

File: wp-includes/class-phpmailer.php


			

Advertisement

Advertisement

Leave a Reply

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