Commit graph

83 commits

Author SHA1 Message Date
Michael
5a00902e11 Avoid HTML parsing of an empty body 2021-04-10 05:46:19 +00:00
Balázs Úr
befc2af504
Merge branch '2021.03-rc' into copyright-2021 2021-03-29 08:45:21 +02:00
Balázs Úr
054c301ef0 Update copyright 2021-03-29 08:40:20 +02:00
Michael
70d5802793 Avoid HTML in ParseUrl desriptions 2021-03-28 11:32:26 +00:00
Michael
bb0f3552e2 ParseUrl: Remove image when it doesn't fit the requirements 2021-03-28 06:47:58 +00:00
Michael
4a19348900 Fix: ParseUrl now fetches images again 2021-03-28 06:20:11 +00:00
Michael
c77f039f7a Fix Warning "key() expects parameter 1 to be array, string given" 2021-03-27 05:20:55 +00:00
Michael
fb663f0668 Avoid several notices in ParseUrl 2021-03-23 20:03:08 +00:00
Michael
4db6f11884 ParseUrl: Perform entitity decode afterwards 2021-03-22 06:47:04 +00:00
Michael
13ed585156 Display rhe provider and author of a shared post 2021-03-21 23:32:49 +00:00
Michael
2a68ad9b26 Check media links when fetching page data 2021-03-21 14:24:42 +00:00
Michael
f772e11cfa Avoid empty type 2021-03-18 08:04:52 +00:00
Michael
e3409c72e2 Add logos for person and organisation 2021-03-17 23:31:16 +00:00
Michael
558189e9d1 Reorganized functions 2021-03-17 22:29:12 +00:00
Michael
f11712cdc0 Some more added types 2021-03-17 17:11:50 +00:00
Michael
da6b54925a Added medias 2021-03-17 07:36:16 +00:00
Michael
df566eea78 Added more types 2021-03-16 22:57:24 +00:00
Michael
003bf69d88 Changed assigning of author and publisher 2021-03-16 11:32:56 +00:00
Michael
08771d96c2 Remove unused parameter 2021-03-16 07:15:20 +00:00
Michael
d498d15200 Avoid double fetches 2021-03-16 07:04:16 +00:00
Michael
0a3d50a270 Adjusted field names 2021-03-16 06:37:43 +00:00
Michael
70bf75c342 Support for page JSON-LD based page information 2021-03-15 22:02:21 +00:00
Michael
7adbd73eca More general content type detection 2021-03-13 13:17:42 +00:00
Michael
ffb92e3355 Integrate fetching of the content type into "getSiteinfo" 2021-03-13 07:03:26 +00:00
Michael
262ee2b0b1 Issue 10019: Fix embedding of media objects 2021-03-12 23:04:51 +00:00
Hypolite Petovan
69802554fd Add native media types and expiration to getSiteInfo 2021-02-18 09:06:11 -05:00
Michael
303aaa00ca Mode switch for insert 2020-11-19 19:34:48 +00:00
Philipp
069753416d
Revert "Fix IHTTPResult::getHeader/s() - Split functionality "getHeader()" and "getHeaders()" analog to IMessageInterface::getHeader/s() - Fix functionality at various places - Adapt CurlResultTest"
This reverts commit 933ea7c9
2020-10-11 23:26:03 +02:00
Philipp
2e8ad098b9
Revert "HTTPRequest: Replace getInfo() with new parameter 'content_length'"
This reverts commit f3cd973c
2020-10-11 23:25:47 +02:00
Philipp
0449077126
Revert "Fix IHTTPResult::getHeader() - Now returns a string array, like expected - Fix usages - Fix dataset"
This reverts commit 80bd0a4d
2020-10-11 23:25:40 +02:00
Philipp
40349bfdc4
Revert "IHTTPResult::getContentType is now a string again"
This reverts commit 40b11442
2020-10-11 23:25:29 +02:00
Philipp
40b11442c2
IHTTPResult::getContentType is now a string again 2020-10-10 23:11:30 +02:00
Philipp
80bd0a4d5a
Fix IHTTPResult::getHeader()
- Now returns a string array, like expected
- Fix usages
- Fix dataset
2020-10-10 23:11:30 +02:00
Philipp
f3cd973cbe
HTTPRequest: Replace getInfo() with new parameter 'content_length' 2020-10-10 23:11:30 +02:00
Philipp
933ea7c9ce
Fix IHTTPResult::getHeader/s()
- Split functionality "getHeader()" and "getHeaders()" analog to IMessageInterface::getHeader/s()
- Fix functionality at various places
- Adapt CurlResultTest
2020-10-10 23:11:30 +02:00
Hypolite Petovan
b26d225136 Restrict character class for charset capture in Util\ParseUrl
- Address https://github.com/friendica/friendica/issues/9252#issuecomment-698742359
2020-09-25 11:36:09 -04:00
Hypolite Petovan
f52d44554e Add style and script tag escaping when parsing charset in Util\ParseUrl
- Address https://github.com/friendica/friendica/issues/9251#issuecomment-698086677
2020-09-25 06:55:52 -04:00
Hypolite Petovan
2cb87aca33 Improve charset detection in Util\ParseUrl
- Pages with charset meta tag weren't properly decoded
2020-09-22 20:35:36 -04:00
nupplaPhil
7029012f27 Rename "HTTPRequest::curl()" to HTTPRequest::get() 2020-07-21 03:14:01 -04:00
nupplaPhil
2973ed6448 Make "HTTPRequest::curl" dynamic 2020-07-21 03:01:12 -04:00
nupplaPhil
5344efef71 Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest" 2020-07-21 02:56:10 -04:00
Hypolite Petovan
886cf40036 Ensure ParseUrl::getSiteinfo always returns the url and type keys 2020-07-17 19:18:27 -04:00
Michael
6f22e3909b Issue 8254 More length shortenings 2020-03-25 23:18:07 +00:00
nupplaPhil
85dc9bb96b
Add license info at Friendica PHP files 2020-02-09 16:18:46 +01:00
Michael
0a4119adaf @brief is removed completely 2020-01-19 06:05:23 +00:00
Michael Vogel
a3b7f08f78 Don't guess the site info / restrict the description length 2019-11-15 14:28:42 +01:00
Hypolite Petovan
03bf1dcbd3 Move Object\Image static methods to Util\Images
- Optimize imports in modified files
2019-11-02 07:48:45 -04:00
Hypolite Petovan
146646c4d4 Replace deprecated calls to defaults() by ?? and ?: in src/ 2019-10-16 08:38:52 -04:00
Hypolite Petovan
4a95ca280d Remove unused code
- Remove commented code
- Remove unused/immediately overwritten variables
- Remove extraneous parameters
- Remove unreachable code
- Remove duplicate array keys
2019-01-21 10:48:40 -05:00
Hypolite Petovan
3282ce5389 Fix PHPDoc comments project-wide 2019-01-21 10:35:51 -05:00