mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 05:54:32 +02:00
Fixed bug that wrong function was called.
This commit is contained in:
parent
d9c83d8bb2
commit
3021d0d67a
2 changed files with 5 additions and 5 deletions
|
@ -455,7 +455,7 @@ abstract class Attachment extends AbstractNamedDBElement
|
|||
*
|
||||
* @return bool True if the string is a valid URL. False, if the string is not an URL or invalid.
|
||||
*/
|
||||
public static function isURL(string $string, bool $path_required = true, bool $only_http = true): bool
|
||||
public static function isValidURL(string $string, bool $path_required = true, bool $only_http = true): bool
|
||||
{
|
||||
if ($only_http) { //Check if scheme is HTTPS or HTTP
|
||||
$scheme = parse_url($string, PHP_URL_SCHEME);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue