69a68be800
Added some missing type-hints
2022-06-23 17:30:13 +02:00
7eefb9aed8
Changed:
...
- empty() is maybe superflous here, still I would prefer a code style that is
written explicitly and not rely on "magic casting"
2022-06-22 18:57:01 +02:00
15d8341d9a
Converted multiple single-comment (//) to multi-line comment block (/* */)
2022-06-22 18:06:35 +02:00
eb231bc548
Fixed: ?? didn't work here as bool won't be seen as null
2022-06-22 17:09:53 +02:00
d5441da49a
Fixed:
...
- TypeError: "Argument 1 passed to Friendica\Util\XML::escape() must be of the
type string, null given, called in src/Util/XML.php line 171
2022-06-22 16:20:26 +02:00
feec96cbc4
Return empty array on error (I hope it works this way).
2022-06-22 14:36:47 +02:00
74ab7648c6
Changes:
...
- addHubLink()'s 2nd parameter is DOMElement
- added more type-hints
- converted double-quotes to single
2022-06-22 14:36:46 +02:00
12add2fb64
$data can turn into bool here
2022-06-22 14:36:46 +02:00
08f55f0358
Ops, forgot to rename these, too.
2022-06-22 14:36:46 +02:00
84bfc37bf1
Changes:
...
- added more type-hints
- added missing documentation
2022-06-22 14:36:45 +02:00
5fe428d3e4
Fixed:
...
- PHPUnit\Framework\Error\Notice: Undefined index: language in /.../src/Util/EMailer/MailBuilder.php on line 122
2022-06-21 13:47:40 +02:00
44a9ec9b17
Rewrite:
...
- avoid having array|string for $table to have a "string" type-hint for $table
- you now have to do it for yourself by giving 'schema.table' as parameter
2022-06-21 13:47:38 +02:00
f1867463a0
Changes:
...
- added more type-hints
2022-06-21 13:47:37 +02:00
3e522ed512
Fixed:
...
- prevent NULL from being handled over to XML::escape()
- still I wonder that an object can be? It is a string-only accepting method
2022-06-21 01:42:37 +02:00
b6fa022a73
Changes:
...
- added type-hints
- added some documentation
- marked some generic methods to be moved to Util\Strings class instead
2022-06-20 23:50:24 +02:00
a0c8fc6d6e
Changes:
...
- added more type-hints
2022-06-20 02:48:02 +02:00
bff57bb030
Changes:
...
- added type-hints
- added returned type-hints in interface (I checked all)
2022-06-19 14:00:31 +02:00
33768ea1c6
Some fixes:
...
- $gsid's default value cannot sadly be 0, it now must be null to allow some
code work
- added some more type-hints
- documented a bit more
2022-06-17 17:18:31 +02:00
dd54e52575
MrPetovan brought the right one up:
...
> Since this is depending on remote systems, the log can quickly fill with unactionable messages.
2022-06-17 17:18:31 +02:00
6035de6883
Continued:
...
- added more type-hints
- also cannot return FALSE when array is set
2022-06-16 19:06:41 +02:00
3444c29b0b
Avoid warning "Undefined namespace prefix"
2022-05-21 06:04:34 +00:00
f6167b4cfd
New function to exit the program
2022-05-18 02:13:54 +00:00
4016a576d5
Log the execution time
2022-05-17 20:47:23 +00:00
f8d929d94e
Ensure to set the network timeout
2022-05-14 09:53:12 +00:00
4b5a743645
Handle timeout
2022-05-14 05:38:01 +00:00
0f0b649e8d
Replace unparse function
2022-05-11 11:06:14 +00:00
020ba7a4ed
The function is now usable for all formats
2022-05-11 06:58:26 +00:00
695e3d8b61
Simplifiy the split
2022-05-11 06:55:02 +00:00
47808ab0e9
Issue 11487: IDN support added
2022-05-11 06:34:25 +00:00
510dacf4df
Escape BBCode tag parsing avoidance tags when processing abstracts
...
- Improve documentation for related methods
2022-05-07 22:19:50 -04:00
40aa67f8be
Bulk transmission for AP posts
2022-05-02 05:15:27 +00:00
9eafcf8484
Update contact when the avatar hadn't been found
2022-04-28 16:46:52 +00:00
990eea2c4e
We now store uncommon endpoints
2022-04-25 13:45:03 +00:00
4eecf733e1
Merge pull request #11389 from nupplaphil/feat/http_client_arg
...
Introduce explicit HttpClient "Accept" parameter
2022-04-08 15:05:40 -04:00
3033f79529
head fixings
2022-04-08 20:48:57 +02:00
04866195b4
Remove accept parameter for head/post again
2022-04-03 19:33:09 +02:00
5290f0cd51
Improved handling of invalid links
2022-04-03 07:31:42 +00:00
029daef997
Only use and accept valid http links as links to an external resource
2022-04-03 07:21:36 +00:00
e299fc67c8
Introduce "accept_header" as specific argument to the http client
2022-04-02 21:16:53 +02:00
73c3b21665
Move ACCEPT constants to own "enum" class
2022-04-02 20:26:11 +02:00
908d2594ed
Use "HttpClientOptions"
2022-03-29 08:57:38 +00:00
1fae0123ec
Some more "accept" parameters are added
2022-03-29 06:24:20 +00:00
ff70f74952
"accept" constants introduced and used
2022-03-28 10:33:06 +00:00
6f43821ebf
Issue 11368: Prevent namespace prefix warning
2022-03-22 21:07:35 +00:00
17d49422b4
Hash the URL before using it as cache key in Util\Images::getInfoFromURLCached
...
- This prevents oversized URL from stunting the database cache
2022-02-18 09:19:36 -05:00
Michael Vogel
6bc69f3353
Workaround for timing problems / Avoid a notice in the scheduled posts
2022-02-12 18:27:58 +01:00
c5337c81e7
Improve contact search speed / assume octet-stream on missing content type
2022-01-27 04:05:11 +00:00
43b9e39c6a
Lemmy support added
2022-01-22 15:24:51 +00:00
dbd6d10536
Issue 8845: Signature support for "created" and "expires" added
2022-01-21 15:38:33 +00:00
95f085b7ac
API: The legacy API finally moved
2022-01-15 21:38:19 +00:00
543e4be0a6
Replace 'REQUEST_METHOD' with App\Arguments::getMethod()
2022-01-04 20:59:28 +01:00
dc46af5ea1
Automatically return allowed HTTP methods for OPTIONS per specific endpoint
2022-01-04 20:59:27 +01:00
Balázs Úr
733f3de9ed
Add missing copyright text
2022-01-02 10:49:50 +01:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
...
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Michael Vogel
076b054a63
Fix for ParseUrl ('type' was already in use)
2021-12-09 01:20:31 +01:00
d6c97dbde2
Fix attachment handling
2021-12-08 13:32:20 +00:00
ecaed2a845
Update DateTimeFormat documentation
...
- Remove an explicit default value parameter
2021-12-04 17:52:01 -05:00
34260fc619
Improved page info detection
2021-12-04 19:54:33 +00:00
d05d2a348b
Deprecate Network::unparseURL in favor of UriInterfact objects
...
- Added specific test for Probe::cleanURI
2021-12-03 17:39:31 -05:00
9cec38f916
Make HTTPInputData dynamic
...
- Removing DI:: dependency inside App class
- Making testability easier & adapting tests
2021-11-30 01:07:59 -05:00
1f79d25ffc
Replaced "api_date"
2021-11-18 21:43:13 +00:00
Michael Vogel
83056df565
Update src/Util/Arrays.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-09 06:23:04 +01:00
a66bb09b40
Moved function to Arrays.php
2021-11-08 22:10:07 +00:00
cfac13790b
"escapeTags" is finally removed
2021-11-07 09:18:25 +00:00
1219a4d00e
Issue 10947: Send correct accept-header for AP
2021-11-03 19:06:07 +00:00
516018861e
Merge remote-tracking branch 'upstream/develop' into error-handling
2021-10-31 05:25:39 +00:00
4236a9a105
Improved http error handling
2021-10-29 23:21:07 +00:00
22663c4ae5
Move Introspection to Logger package
2021-10-29 12:37:22 +02:00
409d909d0f
Restructure HTTPClient for new paradigm
2021-10-28 20:01:03 +02:00
184f6cc255
Restructure Logger to new paradigm
2021-10-28 20:01:02 +02:00
58eea1adaa
Cleanup namespaces
2021-10-26 22:11:10 +02:00
b216317477
Refactoring Core class structures ...
2021-10-26 22:11:09 +02:00
ab83d0dd27
Restructure (P)Config to follow new paradigm
2021-10-26 22:11:06 +02:00
68046573a4
Restructure Cache to follow new paradigm
2021-10-26 22:11:06 +02:00
a497bd3a3d
Merge remote-tracking branch 'upstream/develop' into logging
2021-10-22 06:06:39 +00:00
096dacf0fd
Manually expand ACLs coming from non-permissionset tables
...
- Return early if parameter is empty in ACLFormatter->expand
- Address https://github.com/friendica/friendica/issues/10756#issuecomment-949049195
2021-10-21 18:56:43 -04:00
f6faae5bb1
Replace deprecated log
calls
2021-10-20 18:53:52 +00:00
ab17fbf6b2
Unneeded "ProxyUtils" renamed to "Proxy"
2021-10-05 20:18:19 +00:00
a31a64827f
Display the current timezone in date time picker fields
2021-10-03 13:42:32 -04:00
6db211568a
Remove most calls to date_default_timezone_* calls
...
- It was wrongly used to set the node-wide ot user-specific timezone
- It is now fully managed from the App object
- Add a static variable to DateTimeFormat maintain the convenient local() method
2021-10-03 13:42:31 -04:00
fabrixxm
eadcc8dc93
Handle reading empty file in ReversedFileReader
...
fix #10766
2021-09-27 12:14:19 +02:00
7f7f0eb10c
Improve compacting error logging in Util\JsonLD
...
- Exceptions thrown by friendica/json-ld are nested and their string representation shows all the exception chain
2021-09-22 23:09:46 -04:00
840d9823d4
Log unexpected value
2021-09-22 03:25:01 +00:00
7ac76639c5
AVoid warning when fetching page data
2021-09-22 02:41:24 +00:00
27e4586597
Move path determination logic into the ConfigFactory
2021-09-12 13:44:29 +02:00
5702944116
Add the possibility to use a different configuration directory
2021-09-11 14:33:26 +02:00
bdb5aa6bd9
Make the proxy functionality optional
2021-09-09 12:40:19 +00:00
13a91e63aa
Rename DI::httpRequest() into DI::httpClient()
2021-08-25 21:54:54 +02:00
505100bdd7
Rename HTTPRequestOptions to HTTPClientOptions
2021-08-25 21:45:15 +02:00
0cafa871f1
Use HTTPRequestOptions constants for HTTPClient::get()
2021-08-25 21:31:30 +02:00
aad7bac686
Use HTTPRequestOptions constants for HTTPClient::post()
2021-08-25 21:31:30 +02:00
befd5c860d
Fix headers (string to array) and make sure the signature doesn't change
2021-08-25 14:22:43 +02:00
2356221aba
Fixup HTTP headers for httpClient requests
2021-08-25 14:22:43 +02:00
65ca164487
A lot of Fixings
2021-08-20 21:35:14 +02:00
06371d29a6
Cleanup
2021-08-20 20:03:42 +02:00
26401e88b8
IHTTPResult::getContentType is now a string again
2021-08-20 19:58:42 +02:00
803c1d71de
Fix IHTTPResult::getHeader()
...
- Now returns a string array, like expected
- Fix usages
- Fix dataset
2021-08-20 19:58:42 +02:00
3c074ab315
HTTPRequest: Replace getInfo() with new parameter 'content_length'
2021-08-20 19:58:42 +02:00
dee1899628
Fix IHTTPResult::getHeader/s()
...
- Split functionality "getHeader()" and "getHeaders()" analog to IMessageInterface::getHeader/s()
- Fix functionality at various places - Adapt CurlResultTest
2021-08-20 19:58:42 +02:00
fabrixxm
3766204b05
Fix code standard
2021-08-20 11:09:35 +02:00
fabrixxm
7f695197aa
Fix review points
...
- Fix headers hierarchy
- Improve accessibility:
- set mouse pointer
- make rows focusable
- open on key press
- add tooltip with "title"
- add role and aria attributes
- Rename `ParsedLog` to `ParsedLogLine`
- Add docs to `ReversedFileReader`'s implementation of `Iterator`'s methods
- Add docs to `ParsedLogIterator`'s implementation of `Iterator`'s methods
- Remove unnecessary comment
- Add more test for parsing log lines and fix some edge cases
- Fix function name in snake-case to camelCase
- Remove `DIRECTORY_SEPARATOR`
2021-08-20 11:02:18 +02:00
fabrixxm
dd2abc7aff
Fix code standard
2021-08-19 15:20:25 +02:00
fabrixxm
ec4f53d56f
Add DI to ParsedLogIterator, replace constructors with fluent api
2021-08-19 14:56:51 +02:00
fabrixxm
84fa668845
Fix code formatting
2021-08-19 14:55:33 +02:00
fabrixxm
5b9aeeeca9
Add search and filter to log view
2021-08-19 14:55:33 +02:00
fabrixxm
9368f5445d
Display structured logs in admin
...
Tries to parse log lines and to display info in a table.
Additional JSON data is parsed and displayed clicking on a row.
File reading and line parsing is handled in iterators, to avoid to keep
too much data in memory.
Search and filter should be trivial to add.
Log file is read backward to display log events newest first.
A "tail" functionality should be easy to implement.
2021-08-19 14:55:33 +02:00
51ebb1541a
- Revert HTTPSignature change
2021-08-16 23:27:42 +02:00
5dcdf2322e
Split IStorage and ISelectableStorage and make their behaviour homogenous
2021-08-16 23:27:41 +02:00
5056376902
We need to create a vapid public and private key
2021-08-15 12:57:29 +00:00
8b6ace6629
Don't continue when key couldn't be created
2021-08-15 06:45:48 +00:00
e28a4265c5
API: First steps to support subscriptions
2021-08-15 00:30:41 +00:00
Michael Vogel
f7f79a240a
Are the tests happy?
2021-08-12 15:12:41 +02:00
Michael Vogel
e6ab4d9be9
Fixes "PHP Warning: key() expects parameter 1 to be array, string given"
2021-08-12 14:00:54 +02:00
2e2d1bf81d
Added option to define a schedule date when posting items
2021-08-01 13:01:31 +00:00
ab24f58bad
Parser is now session
2021-07-27 13:56:28 +00:00
Michael Vogel
c03fb998f4
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-07-27 15:16:31 +02:00
72bc1238ba
Tests
2021-07-27 06:17:24 +00:00
c89533a70b
Support for stacked profiler analysis
2021-07-27 04:57:29 +00:00
f5a7b0141b
Added todo
2021-07-19 06:55:23 +00:00
fa00a4ee32
Simplyfied picture fetching
2021-07-19 06:19:13 +00:00
2647514603
Detection of local requests
2021-07-19 06:14:14 +00:00
dac27ead7a
Proxy settings removed
2021-07-06 06:44:18 +00:00
a5176cb841
Unused constant removed
2021-07-05 05:41:05 +00:00
fccb725651
Unneeded workaround removed
2021-07-05 05:11:35 +00:00
844727dc19
Simplyfying code
2021-07-05 04:16:02 +00:00
e519b782fd
Simplified proxy handling
2021-07-04 21:24:49 +00:00
b46b7b08ba
Reduce the usage of the "proxifyUrl" function
2021-06-27 11:50:10 +00:00
e7bc908655
Renaming the date format to "JSON"
2021-06-02 03:32:42 +00:00
4e164690d5
Use the proper way to display milliseconds
2021-06-02 03:19:55 +00:00
5bd51b156a
API: Fix date format
2021-06-01 22:32:05 +00:00
8c99d3acc1
Merge pull request #10323 from annando/issue-10306
...
Issue 10306: Improve local delivery
2021-05-26 14:24:24 -04:00
785f8124ed
Issue 10306: Improve local delivery
2021-05-26 09:24:37 +00:00
681f55315b
Downgrading PHP 7.4 incompatible fread/fwrite checks
2021-05-25 20:21:51 +02:00
ee5209a847
Improved logging
2021-05-25 13:18:48 +00:00
6e1402f7bd
Calling it static
2021-05-24 08:08:01 +00:00
3e303fb366
Test file uploads
2021-05-24 07:43:42 +00:00
ca5fd01f75
Transmit encoding, deactivated file test
2021-05-24 05:33:34 +00:00
7b49117801
Return data should be array
2021-05-24 05:22:25 +00:00
15216266d9
Add ContentType Injection for HTTPInputData tests
2021-05-23 22:40:41 +02:00
c064a39341
Adapt tests using a content file
2021-05-23 20:30:27 +02:00
a0da84b6b0
Enable testability for HTTPInputData and create a failing test for it :-)
2021-05-23 19:58:09 +02:00
fd3706b72e
Coding standards again
2021-05-22 20:33:26 +00:00
684f9cdb96
Coding standards
2021-05-22 20:31:50 +00:00
2c6db3ccac
Coding standards
2021-05-22 20:29:15 +00:00
6f44476c56
Merge remote-tracking branch 'upstream/2021.06-rc' into http-input-data
2021-05-22 20:26:32 +00:00
0c21588ab9
Don't delete local tombstone contacts
2021-05-22 08:25:30 +00:00
bcb2073c9a
New class to process HTTP input data
2021-05-21 17:36:51 +00:00
ce6b4c27ea
Use locally stored original w3c documents
2021-05-17 05:51:14 +00:00
c21d991208
Use local copy of the w3id security context
2021-05-16 20:58:11 +00:00