mirror of
https://github.com/friendica/friendica
synced 2025-04-25 02:30:11 +00:00
provide allow list of friend sites for education/corporate environments,
pattern matchable
This commit is contained in:
parent
2c96ad7739
commit
38fde6672e
2 changed files with 50 additions and 5 deletions
|
@ -134,7 +134,7 @@ function dfrn_request_post(&$a) {
|
|||
|
||||
// invalid/bogus request
|
||||
|
||||
notice( t("Unrecoverable protocol error.") . EOL );
|
||||
notice( t('Unrecoverable protocol error.') . EOL );
|
||||
goaway($a->get_baseurl());
|
||||
return; // NOTREACHED
|
||||
}
|
||||
|
@ -219,7 +219,14 @@ function dfrn_request_post(&$a) {
|
|||
goaway($a->get_baseurl() . '/' . $a->cmd);
|
||||
return; // NOTREACHED
|
||||
}
|
||||
|
||||
if(! allowed_url($url)) {
|
||||
notice( t('Disallowed profile URL.') . EOL);
|
||||
goaway($a->get_baseurl() . '/' . $a->cmd);
|
||||
return; // NOTREACHED
|
||||
}
|
||||
|
||||
|
||||
require_once('Scrape.php');
|
||||
|
||||
$parms = scrape_dfrn($url);
|
||||
|
@ -301,7 +308,7 @@ function dfrn_request_post(&$a) {
|
|||
// This notice will only be seen by the requestor if the requestor and requestee are on the same server.
|
||||
|
||||
if(! $failed)
|
||||
notice( t("Your introduction has been sent.") . EOL );
|
||||
notice( t('Your introduction has been sent.') . EOL );
|
||||
|
||||
// "Homecoming" - send the requestor back to their site to record the introduction.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue