mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
We now use a central function for fetching the postdata
This commit is contained in:
parent
f8b8a5a52b
commit
b4c673a620
7 changed files with 21 additions and 6 deletions
|
@ -342,6 +342,16 @@ class Network
|
|||
return $curlResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return raw post data from a post request
|
||||
*
|
||||
* @return string post data
|
||||
*/
|
||||
public static function postdata()
|
||||
{
|
||||
return file_get_contents('php://input');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Check URL to see if it's real
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue