[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] Question about isValidUrl function

From: Marcos García
Subject: [Dolibarr-dev] Question about isValidUrl function
Date: Thu, 17 Jul 2014 21:23:24 +0200

Hi all:

I've been looking at isValidUrl function (located in core/lib/functions2.lib.php) and it has multiple parameters that are not used all over Dolibarr code.

Also, there's already a function in the core of PHP that does the same. Can we replace all the preg checks (that have high CPU cost) with the filter_var function or is there any reason why those checks are there?

Marcos García

reply via email to

[Prev in Thread] Current Thread [Next in Thread]