C# Class Pchp.Core.Utilities.FileSystemUtils

File system utilities.
Mostra file Open project: iolevel/peachpie

Public Methods

Method Description
StripPassword ( string url ) : string

Returns the given URL without the username/password information.

Removes the text between the last "://" and the following '@'. Does not check the URL for validity. Works for php://filter paths too.

Method Details

StripPassword() public static method

Returns the given URL without the username/password information.
Removes the text between the last "://" and the following '@'. Does not check the URL for validity. Works for php://filter paths too.
public static StripPassword ( string url ) : string
url string The URL to modify.
return string