mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:40:16 +00:00
Movwe the conversion after the cleaning
This commit is contained in:
parent
ffb8491c3f
commit
34f594137e
1 changed files with 2 additions and 2 deletions
|
@ -65,11 +65,11 @@ class Probe
|
|||
*/
|
||||
public static function cleanURI(string $rawUri): string
|
||||
{
|
||||
$rawUri = Network::convertToIdn($rawUri);
|
||||
|
||||
// At first remove leading and trailing junk
|
||||
$rawUri = trim($rawUri, "@#?:/ \t\n\r\0\x0B");
|
||||
|
||||
$rawUri = Network::convertToIdn($rawUri);
|
||||
|
||||
$uri = new Uri($rawUri);
|
||||
if (!$uri->getScheme()) {
|
||||
return $uri->__toString();
|
||||
|
|
Loading…
Reference in a new issue