This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
friendica
/
friendica
mirror of
https://github.com/friendica/friendica.git
Watch
1
Star
2
Fork
1
Code
Issues
Releases
49
Wiki
Activity
Browse Source
Code standards
pull/6020/head
Philipp Holzer
3 years ago
parent
310d49b82a
commit
99a33b7335
No known key found for this signature in database
GPG Key ID:
517BE60E2CE5C8A5
2 changed files
with
1 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-1
mod/randprof.php
+1
-2
src/App.php
+ 0
- 1
mod/randprof.php
View File
@ -14,7 +14,6 @@ function randprof_init(App $a)
if
(
$x
)
{
$link
=
Contact
::
magicLink
(
$x
);
// @TODO making the return of magicLink save to use either externalRedirect or internalRedirect
$a
->
redirect
(
$link
);
}
+ 1
- 2
src/App.php
View File
@ -2016,8 +2016,7 @@ class App
*/
public
function
redirect
(
$toUrl
)
{
if
(
filter_var
(
$toUrl
,
FILTER_VALIDATE_URL
))
{
if
(
filter_var
(
$toUrl
,
FILTER_VALIDATE_URL
))
{
Core\System
::
externalRedirect
(
$toUrl
);
}
else
{
$this
->
internalRedirect
(
$toUrl
);
Write
Preview
Loading…
Cancel
Save