https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efdb663
)
Add defaults() to url parameter in mod/follow
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 9 Mar 2019 02:53:44 +0000
(21:53 -0500)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 9 Mar 2019 02:53:44 +0000
(21:53 -0500)
- Add error redirection to /contact when url param is empty
- Addresses part of https://github.com/friendica/friendica/issues/6338#issuecomment-
470681556
mod/follow.php
patch
|
blob
|
history
diff --git
a/mod/follow.php
b/mod/follow.php
index
abde4ab
..
404c79e
100644
(file)
--- a/
mod/follow.php
+++ b/
mod/follow.php
@@
-60,7
+60,11
@@
function follow_content(App $a)
}
$uid = local_user();
- $url = Strings::escapeTags(trim($_REQUEST['url']));
+ $url = Strings::escapeTags(trim(defaults($_REQUEST, 'url', '')));
+
+ if (!$url) {
+ $a->internalRedirect($return_path);
+ }
$submit = L10n::t('Submit Request');