Commit graph

728 commits

Author SHA1 Message Date
Michael
c89533a70b Support for stacked profiler analysis 2021-07-27 04:57:29 +00:00
Michael
f5a7b0141b Added todo 2021-07-19 06:55:23 +00:00
Michael
fa00a4ee32 Simplyfied picture fetching 2021-07-19 06:19:13 +00:00
Michael
2647514603 Detection of local requests 2021-07-19 06:14:14 +00:00
Michael
dac27ead7a Proxy settings removed 2021-07-06 06:44:18 +00:00
Michael
a5176cb841 Unused constant removed 2021-07-05 05:41:05 +00:00
Michael
fccb725651 Unneeded workaround removed 2021-07-05 05:11:35 +00:00
Michael
844727dc19 Simplyfying code 2021-07-05 04:16:02 +00:00
Michael
e519b782fd Simplified proxy handling 2021-07-04 21:24:49 +00:00
Michael
b46b7b08ba Reduce the usage of the "proxifyUrl" function 2021-06-27 11:50:10 +00:00
Michael
e7bc908655 Renaming the date format to "JSON" 2021-06-02 03:32:42 +00:00
Michael
4e164690d5 Use the proper way to display milliseconds 2021-06-02 03:19:55 +00:00
Michael
5bd51b156a API: Fix date format 2021-06-01 22:32:05 +00:00
Hypolite Petovan
8c99d3acc1
Merge pull request #10323 from annando/issue-10306
Issue 10306: Improve local delivery
2021-05-26 14:24:24 -04:00
Michael
785f8124ed Issue 10306: Improve local delivery 2021-05-26 09:24:37 +00:00
Philipp
681f55315b
Downgrading PHP 7.4 incompatible fread/fwrite checks 2021-05-25 20:21:51 +02:00
Michael
ee5209a847 Improved logging 2021-05-25 13:18:48 +00:00
Michael
6e1402f7bd Calling it static 2021-05-24 08:08:01 +00:00
Michael
3e303fb366 Test file uploads 2021-05-24 07:43:42 +00:00
Michael
ca5fd01f75 Transmit encoding, deactivated file test 2021-05-24 05:33:34 +00:00
Michael
7b49117801 Return data should be array 2021-05-24 05:22:25 +00:00
Philipp
15216266d9
Add ContentType Injection for HTTPInputData tests 2021-05-23 22:40:41 +02:00
Philipp
c064a39341
Adapt tests using a content file 2021-05-23 20:30:27 +02:00
Philipp
a0da84b6b0
Enable testability for HTTPInputData and create a failing test for it :-) 2021-05-23 19:58:09 +02:00
Michael
fd3706b72e Coding standards again 2021-05-22 20:33:26 +00:00
Michael
684f9cdb96 Coding standards 2021-05-22 20:31:50 +00:00
Michael
2c6db3ccac Coding standards 2021-05-22 20:29:15 +00:00
Michael
6f44476c56 Merge remote-tracking branch 'upstream/2021.06-rc' into http-input-data 2021-05-22 20:26:32 +00:00
Michael
0c21588ab9 Don't delete local tombstone contacts 2021-05-22 08:25:30 +00:00
Michael
bcb2073c9a New class to process HTTP input data 2021-05-21 17:36:51 +00:00
Michael
ce6b4c27ea Use locally stored original w3c documents 2021-05-17 05:51:14 +00:00
Michael
c21d991208 Use local copy of the w3id security context 2021-05-16 20:58:11 +00:00
Michael
4b4218f516 Compact using a predefined context to fix content from Pleroma 2021-05-16 19:31:10 +00:00
Michael
6f2fcd2859 Don't use compacted data when parsing accounts 2021-05-16 16:41:07 +00:00
Michael
5ea44960e0 Additional change to the quickfix 2021-05-16 14:59:02 +00:00
Michael
4c72d2c34a Quickfix for current Json-LD problems 2021-05-16 14:32:06 +00:00
Hypolite Petovan
412a0b3e1c Ensure JsonD data passed to ParseURL::parseParts is an array
- Address https://github.com/friendica/friendica/issues/10167#issuecomment-827894961
2021-05-10 21:32:03 -04:00
Michael
6841608164 Fix fatal error because of parameter type mismatch 2021-05-03 18:43:38 +00:00
Michael
d8901452fc Improved logging for invalid HTTP signatures 2021-05-01 12:32:33 +00:00
Michael
8685e5ca32 Reworked media handling 2021-04-26 06:50:12 +00:00
Michael
f3b27dc789 Quickfix to avoid bad looking incoming tweets
Fixes https://github.com/friendica/friendica/pull/10148#issuecomment-821512658
2021-04-17 07:26:03 +00:00
Michael
2ed98bd040 Prevent false "photo" page detection 2021-04-15 21:13:20 +00:00
Michael
5a00902e11 Avoid HTML parsing of an empty body 2021-04-10 05:46:19 +00:00
Philipp
b983559980
Fix Object parsing for Logging 2021-04-01 20:55:25 +02: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
Philipp
b61b3cb182
Fix object handling inside log arrays 2021-03-28 21:50:32 +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
Colby Sollars
5151a82d5e On wall_attach, file extension to mimetype matching now breaks the filename at the last . character instead of the first 2021-02-16 15:50:20 -07:00
Hypolite Petovan
185adc61f0 Set correct integer return type for Temporal::getAgeByTimezone 2021-01-31 08:36:56 -05:00
Hypolite Petovan
e342f69e21 Simplify item sanitization in Util\ACLFormatter 2020-12-30 21:11:24 -05:00
Michael
c1e8dbdbae Avoid "Duplicate entry" 2020-12-17 18:56:10 +00:00
Michael
e713db4ac7 Delete tombstone contacts 2020-12-17 08:00:56 +00:00
Michael
a548e7c4be Fix warning "supplied key param cannot be coerced into a public key" 2020-12-17 07:07:54 +00:00
Michael
a331a8cf0a Delete removed contacts 2020-12-15 22:56:46 +00:00
Michael
20ded2b35a Parameters should be float ... 2020-12-10 00:02:23 +00:00
Michael
5fb83d0632 Improved performance profiler 2020-12-09 22:10:27 +00:00
Michael
e4e9a20ac8 Don't transmit to archived inboxes 2020-11-23 19:25:22 +00:00
Michael
cea2b13075 Parameter has to be float 2020-11-20 08:55:30 +00:00
Michael
e4c95efd80 Added minimal execution time for rendertime addon 2020-11-20 08:44:00 +00:00
Michael
303aaa00ca Mode switch for insert 2020-11-19 19:34:48 +00:00
Hypolite Petovan
fa003eaa84 Fix expected implementation of JsonLD::fetchElementArray
- Added expected field value matching
2020-11-11 11:19:08 -05:00
Michael
c9d79040cb Fixes notice: Undefined index: nobody in /src/Util/HTTPSignature.php on line 450 2020-10-20 15:19:06 +00:00
Philipp
a74d88c4ee
Remove 'headers' option occurrences and add a warning if used. 2020-10-18 22:31:26 +02:00
Philipp
c19f1a83ce
Remove option 'novalidate' flag from HTTPRequest options 2020-10-18 22:23:07 +02:00
Philipp
54d78f9ce1
Removed completely un-used 'http_auth' option from HTTPRequest 2020-10-18 22:19:03 +02:00
Philipp
61da51c2d5
Add HTTPRequest::head() function 2020-10-18 22:15:53 +02:00
Philipp
a6fc9cd32e
Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3) 2020-10-18 20:56:31 +02: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
e17befb7d6
Use last entry for Content-Type 2020-10-10 23:11:30 +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
Philipp
d39ee428f0
Introduce "static/env.config.php" for environment variable mapping to config cache entries
- Added new database.port config value (used for MYSQL_PORT)
- Removed now obsolete db environment variable functionality
- Added functionality to load env variables (overwrites DB based cached)
2020-10-06 20:43:29 +02:00
Philipp
0f3e4255ca
Introduce Config\Cache Source indicators (File, DB, Server Env) 2020-10-04 20:41:31 +02:00
Philipp
8318a0b640
Move ExAuth, FKOAuth1 & FKOAuthDataStore to own namespace Friendica\Security 2020-09-30 11:14:01 +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
3038e4a3f9
Merge pull request #9262 from nupplaphil/phpmailer_fix
E-Mail Message-ID & Newline fix
2020-09-23 14:22:12 -04:00
Philipp
3eaaf716e9
just log double message IDs, don't discard the email 2020-09-23 19:38:20 +02: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
Philipp
e2b736d0a9
Fix phpmailer (Case sensitive Check) 2020-09-22 22:48:34 +02:00
Philipp
545517e85f
Add protected mail function for testability 2020-09-22 21:08:36 +02:00
Hypolite Petovan
acd6fd7dd3 Add expected method MailBuilder->withHeaders
- Address https://github.com/friendica/friendica/issues/9250#issuecomment-696055412
2020-09-21 11:07:34 -04:00
Hypolite Petovan
a852455d0e Merge remote-tracking branch 'friendica/stable' into develop
# Conflicts:
#	composer.lock
2020-09-20 15:32:58 -04:00
Hypolite Petovan
722aada460
Merge pull request #9242 from nupplaphil/bug/9142-message-id
Transform email header string to header array
2020-09-19 22:10:20 -04:00
Philipp
c41614fef1
Add improvements 2020-09-19 22:49:44 +02:00
Philipp
ac1d2cf38f
Transform email header string to header array & replace it at various situations. 2020-09-19 20:16:55 +02:00
Michael
74e5a73678 Fix fatal errors and notices 2020-09-18 12:08:40 +00:00
Michael Vogel
de3ed5faf4
Merge pull request #9197 from MrPetovan/bug/9192-normalize-escaping-item
Remove obsolete uses of Strings::escapeTags in mod/item
2020-09-16 22:10:19 +02:00
Michael
55e169db49 Configurable list of domains to ignore redirects 2020-09-16 04:56:37 +00:00
Philipp
4db45aca06
Fix indentation .. again ;-) 2020-09-14 06:34:03 +02:00
Hypolite Petovan
a7de06d280 Add deprecation notice on Strings::escapeTags 2020-09-13 20:01:55 -04:00
Michael
34257e78ca Function renamed 2020-09-13 19:40:38 +00:00
Philipp
9d9489494e
Format/name changes 2020-09-13 10:53:15 +02:00
Michael
20b25a1acd New function "queryValue" 2020-09-12 19:23:23 +00:00
Philipp
90346f61ba
Replace library/ASNValue.class.php with phpseclib functions 2020-09-12 20:54:37 +02:00
Philipp
11ef3895f5
Replace library/asn1.php with phpseclib 2020-09-12 20:44:36 +02:00
Philipp
31c55a6fa4
Rename class for PSR-0 2020-09-11 19:24:40 +02:00
Michael
bdd834d313 Support signed outbox requests 2020-08-30 17:07:46 +00:00
Michael Vogel
fc2340d4af
Merge pull request #8909 from MrPetovan/task/ex_auth
Refactor ExAuth for DICE
2020-08-22 22:12:22 +02:00
Michael
7dbf72e454 We now fetch data with an automatically generated system user 2020-08-22 14:48:09 +00:00
Michael
d9fc0ae0ea Using a constant value for the default avatar 2020-08-18 20:30:24 +00:00
Michael
ecd2d88b09 Don't let the tests fail. The test user doesn't have a private key 2020-08-07 17:05:49 +00:00
Michael
b79bb0d2cb Fetch photo fields, ensuring that they are filled 2020-07-28 12:58:19 +00:00
Hypolite Petovan
afb882048e Generate callstack value from inside Profiler::saveTimestamp
- Save a massive amount of time computing callstacks when profiling is disabled
2020-07-27 02:33:05 -04:00
nupplaPhil
657d08f09f Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull" 2020-07-21 03:15:53 -04:00
nupplaPhil
7029012f27 Rename "HTTPRequest::curl()" to HTTPRequest::get() 2020-07-21 03:14:01 -04:00
nupplaPhil
60e18736b0 Move "Network::finalUrl" to "HTTPRequest" class 2020-07-21 03:09:40 -04:00
nupplaPhil
57587efe58 Move "getUserAgent()" to "HTTPRequest" class 2020-07-21 03:04:58 -04:00
nupplaPhil
1aa07f87a4 Make "HTTPRequest::fetchUrl" dynamic 2020-07-21 03:04:58 -04:00
nupplaPhil
8793096c16 Make "HTTPRequest::post" dynamic 2020-07-21 03:02:51 -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
Philipp Holzer
8565617ea1 Refactor ExAuth for DICE 2020-07-21 02:30:12 -04:00
Hypolite Petovan
886cf40036 Ensure ParseUrl::getSiteinfo always returns the url and type keys 2020-07-17 19:18:27 -04:00
Hypolite Petovan
dd85f48e0d
Merge pull request #8886 from annando/getidforurl-update
in "getidforurl" "no update" is now "update"
2020-07-16 09:23:30 -04:00
Michael
c352af8eda Reverting accidentally commited test 2020-07-16 04:45:12 +00:00
Michael Vogel
a24fca818d
Merge pull request #8879 from MrPetovan/task/8847-httpsig-quotes
Add support for token strings in HTTPSignature::parseSigheader
2020-07-16 06:36:17 +02:00
Michael
d9c6a46ffe Replaced "getDetailsByURL" with "getByURL/getByURLForUser" 2020-07-15 04:42:04 +00:00
Hypolite Petovan
bf599be1f8 Add support for token strings in HTTPSignature::parseSigheader
- Only quoted strings were supported before
2020-07-14 09:52:03 -04:00
Hypolite Petovan
291f11a8bb Fix critical bug in Crypto::unencapsulate
- The direction of the sub-function has been corrected
2020-07-14 09:35:06 -04:00
Michael
81928727f2 Issue 8866: Fix fetching feed links with missing base 2020-07-12 12:45:34 +00:00
Hypolite Petovan
78b424c7fd Add support for "hs2019" algorithm value in Util\HTTPSignature 2020-07-04 13:12:59 -04:00