Philipp Holzer
fe078410a1
Move Cache::get() to DI::cache()->get()
2020-01-07 00:45:49 +01:00
Philipp Holzer
f68929633b
Move Cache::set() to DI::cache()->set()
2020-01-07 00:41:20 +01:00
Philipp Holzer
f0eea6f875
Remove get_app() in favor of DI::app()
2020-01-04 23:42:01 +01:00
Philipp Holzer
3f34229752
Move redundant System::baseUrl() to DI::baseUrl() calls
2019-12-30 23:00:08 +01:00
Philipp Holzer
c1dbb25656
Creating interfaces for Config/PConfig & fix tests
2019-12-29 20:18:19 +01:00
Philipp Holzer
50be94aa5e
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName()
2019-12-29 20:17:47 +01:00
Philipp Holzer
181529f3df
Refactor dynamic App::getProfiler() to static DI::profiler()
2019-12-29 20:17:42 +01:00
Philipp Holzer
388b963714
Replace BaseObject class with DI::* calls
2019-12-29 20:17:38 +01:00
Philipp Holzer
1de3f186d7
Introduce new DI container
...
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
2019-12-29 20:16:55 +01:00
Hypolite Petovan
61c6daeff0
Add timezone information to logger timestamp
2019-12-24 16:07:36 -05: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
Philipp Holzer
f4ad82bcfb
make ACLFormatter::expand() nullable and return an empty array
...
- optimize tests
2019-11-01 15:43:16 +01:00
Philipp Holzer
aa7be41728
Fix ACLFormatterTest
...
- Add nullable to expand() function again
- Add angle bracket support to toString()
2019-11-01 14:13:29 +01:00
Michael
bef7eeed13
Fix 7778: Don't return empty string in permissions
2019-10-29 06:01:50 +00:00
Hypolite Petovan
9f460c6797
Merge pull request #7765 from nupplaphil/task/move_text
...
Move include/text.php to class structure
2019-10-23 15:57:01 -04:00
Philipp Holzer
c9e1098dd2
Adapt naming convention
2019-10-23 21:39:00 +02:00
Philipp Holzer
ad67fd3aa8
Move is_a_date_arg to DateTimeFormat::isYearMonth
...
- Improved functionality
- Added tests
2019-10-23 02:39:28 +02:00
Philipp Holzer
5843a80b6c
Move perms2str to ACLFormatter::aclToString()
...
- including new tests
2019-10-23 00:54:34 +02:00
Philipp Holzer
f65f7f11c3
Move expand_acl to ACLFormatter::expand()
...
- including tests
2019-10-23 00:40:14 +02:00
Philipp Holzer
04a86dad75
remove superfluous line
2019-10-22 22:52:40 +02:00
Philipp Holzer
1fe9b789f3
Add some PHP doc
2019-10-22 22:51:52 +02:00
Philipp Holzer
6b2c28e2d7
Add checks & realpath() usage
...
- New util class "FileSystem"
- Add check in admin summary too
2019-10-22 22:47:37 +02:00
Philipp Holzer
0e84a843a4
Add Fallback in case the logfile isn't accessible.
...
- Fixes https://github.com/friendica/friendica/issues/7756#issuecomment-544227862
2019-10-21 21:53:55 +02:00
Michael
4664249fec
Improved comment
2019-10-17 21:49:29 +00:00
Michael
36ba7fa79c
Merge remote-tracking branch 'upstream/develop' into http-417
2019-10-17 21:37:24 +00:00
Hypolite Petovan
5dcf6bfc58
Remove extra spaces before closing parentheses in src/
2019-10-16 08:58:09 -04:00
Hypolite Petovan
146646c4d4
Replace deprecated calls to defaults() by ?? and ?: in src/
2019-10-16 08:38:52 -04:00
Michael
440da8a9f4
eol
2019-10-12 14:07:22 +00:00
Michael
c1ab93a5d8
Strings.php: Spaces are transformed to Tabs.
2019-10-12 10:28:18 +00:00
Hypolite Petovan
2c2beb5c0a
Revert Util\Strings::escapeHtml changes from #7725
...
- Breaks display of inserted mentions
2019-10-11 22:19:20 -04:00
dew-git
e1e1d26b5b
Revert random_int changes.
2019-10-11 00:00:15 -08:00
dew-git
b5dac16def
Comply with coding style.
2019-10-10 20:50:51 -08:00
dew-git
811cdcdfcb
Fix security vulnerbilities.
...
Fix possible length extension attack, predicable generators, timing attacks on hash comparision and improved formatting.
2019-10-10 15:21:41 -08:00
Michael
83b00ef308
New function "isAuthenticated"
2019-09-28 18:09:11 +00:00
Michael
6e9026e033
Renamed function, beginning to replace the "remote_user" function
2019-09-28 09:36:41 +00:00
Michael
3dd94355b7
Fix permissions when viewing photos, applying same fix to items as well
2019-09-27 05:49:23 +00:00
Michael
704cdf1b5a
New function to store the "remote" session value / making the changes work
2019-09-26 04:47:42 +00:00
Michael
5254147ccc
Fix "redir" loop
2019-09-23 22:13:20 +00:00
Hypolite Petovan
f51b275b17
Add parameter type hints in Temporal::getDateofBirthField
2019-09-21 10:52:55 -04:00
Hypolite Petovan
118e737a49
Remove dependency to App object in Temporal::getDateofBirthField
2019-09-21 05:15:52 -04:00
Michael
5ea8116cfd
Workaround for HTTP error 417
2019-09-02 20:39:51 +00:00
Philipp Holzer
df7ec0cdf7
php notice fixings
...
addons:
- bufferapp (missing errorcode)
- twitter (wrong field name 'nickname')
core:
- bbcode (incomplete attachementdata)
- crypto (uninitialized key)
2019-08-27 08:27:07 +02:00
Philipp Holzer
08be92a862
Moved BaseURL to App namespace (because similar type as Arguments/Modules/Modes)
2019-08-15 17:23:00 +02:00
Michael
b4c673a620
We now use a central function for fetching the postdata
2019-07-30 22:26:01 +00:00
Philipp Holzer
6c2cf494b5
Remove DependencyFactory
...
- Include all necessary classes in `dependencies.config.php`
- Add DI-reference to BaseObject (acts as a global registry)
- Refactor all static "init()" methods to use the global registry
- Refactor Logging for Worker-Logger a little bit
2019-07-27 23:54:12 +02:00
Hypolite Petovan
46f7b79c7d
Switch server blocklist check to case-insensitive shell wildcard
2019-07-25 22:36:25 -04:00
Hypolite Petovan
3812d3d445
Enable two-factor app-specific passwords for ejabberd
2019-07-23 05:11:33 -04:00
Philipp Holzer
55999730e0
Introduce DICE
...
- Adding dice library
- Adding dependency config
- Removing Factories
- Refactoring App\Mode constructor
- Refactoring App\Router constructor
- Refactoring BasePath for DI usage
- Refactoring ConfigFileLoader constructor
- Refactoring Profiler constructor
- Adjust entrypoints (index, console, worker, ..)
- Adding functional test for DI
- Fix tests because of refactorings
2019-07-21 01:22:10 +02:00
Philipp Holzer
346290cc23
Reverted indention
2019-07-16 21:54:22 +02:00
Philipp Holzer
46a260aa01
Fix indentations
2019-07-16 20:19:56 +02:00
Philipp Holzer
92fb0a82ca
Dynamic config loading
...
- Move settings, defaults and dbstructure to directory 'static'
- Dynamic loading of config files (after the static loading)
- Filter out '-sample.config.php' and '-sample.ini.php' files
- Remove unnecessary ConfigFileManager
- Move ConfigFileLoader to Utils
- Add tests for multi-loading for INI, config and sample-filtering
2019-07-16 20:16:43 +02:00
Philipp Holzer
c82127ffb7
Splitting ConfigCache & PConfigCache
...
- Remove IConfigCache & IPConfigCache
- Add new PConfigCache
- Add missing Logger::init() (bugfixing tests)
2019-07-12 22:53:37 +02:00
Philipp Holzer
7c54edd4b4
Fixing Network::post() caused by wrong argument
2019-06-10 19:34:16 +02:00
Michael
7bbacd3878
Fixes PR 7242: Now the "post" function works again
2019-06-10 16:58:00 +00:00
Philipp Holzer
cc7444d84d
Move internal recursion-counter to the end of all cur/fetchUrl parameters
2019-06-10 14:34:54 +02:00
Philipp Holzer
10683a43c8
Add typed parameter for methods in Friendica\Util\Network
2019-06-10 12:06:41 +02:00
Dean Townsley
19e99f7e81
Use accessing function for session variable
2019-06-09 21:06:42 -05:00
Dean Townsley
5c93db4097
remove leftover logging
2019-06-09 21:06:42 -05:00
Dean Townsley
af85e498ce
expand permission check to remote array
...
This check was preventing multiple private images from different
users on the same server from loading on the same page.
It was only checking for permission for the single id returned by the
remote_user() function rather than the multiple possible autheniticated
id's stored in the remote arry session variable.
2019-06-09 21:06:42 -05:00
Philipp Holzer
4c5dd9f47c
Add more Strings::isHex() checks to photos
2019-05-30 10:30:15 +02:00
Philipp Holzer
3de540d1d1
Adding hexadecimal check for photos
...
see https://github.com/friendica/friendica/issues/6917#issuecomment-492798238
2019-05-29 20:28:25 +02:00
Hypolite Petovan
4e207ef786
Enable addon using emailer hooks to skip default call to mail()
2019-05-26 21:36:09 -04:00
Hypolite Petovan
956ae6241d
Add exception message chain, string trace and original object to JsonLD normalize error logging
2019-05-20 15:28:54 -04:00
Hypolite Petovan
3395f56036
Add Unicode support to autolink regular expression
...
- Explicitly exclude non-breaking spaces from URLs as \s doesn't include them
2019-05-19 18:51:55 -04:00
Michael
6f3019ecdd
Revert PR 7158 since it breaks umlauts
2019-05-19 09:34:49 +00:00
Hypolite Petovan
8fb9722cdc
Replace htmlspecialchars_decode with html_entity_decode in XML::unescape
...
- Replace htmlspecialchars with htmlentities in XML::escape
- This allows for converting all entities from Diaspora messages to regular characters
2019-05-18 13:15:51 -04:00
Michael
87b98b8249
Sending direct messages via AP does work now - receiving is pending
2019-05-14 17:50:45 +00:00
Michael
eef85584c2
AP: Parsing of messages from Pleroma should work now again
2019-04-26 06:17:37 +00:00
Michael
af92f46a2d
Workaround for systems who don't use a correct context in ActivityPub
2019-04-25 13:30:30 +00:00
Philipp Holzer
1480380af6
Basepath Hardening
2019-04-14 16:17:58 +02:00
Philipp Holzer
03e149270b
bugfix
2019-04-14 14:40:26 +02:00
Philipp Holzer
1dd1684885
Hardening save method in BaseURL
2019-04-10 20:38:39 +02:00
Philipp Holzer
40c075cf47
BaseURL hardening
2019-04-09 08:48:04 +02:00
Philipp Holzer
edd4f06ad0
Adding tests
2019-04-09 08:31:18 +02:00
Philipp Holzer
318a3ca785
Create own base URL class which holds the whole base url business logic
2019-04-09 08:31:16 +02:00
Hypolite Petovan
6f94e51ba6
Add Strings::sanitizeFilePathItem method
2019-03-31 21:39:19 -04:00
Michael
55325f191b
Merge remote-tracking branch 'upstream/develop' into ap-delivery-failure
2019-03-26 21:36:46 +00:00
Michael
198e150ba8
Archive inboxes after 5 days of delivery failures
2019-03-25 21:51:32 +00:00
Philipp Holzer
d78598b64e
Fixing basepath issue
2019-03-25 09:39:33 +01:00
Philipp Holzer
23654ce566
Added Update checks
...
- Logging
- Console
- Admin overview
2019-03-24 22:51:30 +01:00
Philipp Holzer
49def0dc27
Adding ConfigFileSaver and tests
2019-03-24 13:47:35 +01:00
Philipp Holzer
fa31bb6dde
remove basepath and hostname from admin panel and add update path
2019-03-24 13:47:31 +01:00
Philipp Holzer
383a6715c3
Added first version of ConfigCacheSaver
2019-03-23 19:34:54 +01:00
Philipp Holzer
d03dedee63
Set Timezone to 'UTC' for every Logger (Develop)
2019-03-22 23:14:48 -04:00
Philipp Holzer
f63956851b
Adding Logger Tests
2019-03-22 23:13:26 -04:00
Philipp Holzer
aee348fa02
Adding Logger Tests
2019-03-22 23:13:26 -04:00
Philipp Holzer
7bebb03f95
Fix php doc
2019-03-22 23:13:25 -04:00
Philipp Holzer
eec4ee3fed
Rename & Testfix
2019-03-22 23:13:25 -04:00
Philipp Holzer
cc8a6c85ae
typo
2019-03-22 23:13:24 -04:00
Philipp Holzer
7658916540
Added StreamLoggerTest
2019-03-22 23:13:24 -04:00
Philipp Holzer
81ba5376d0
Added StreamLogger and ProfilerLogger
2019-03-22 23:13:23 -04:00
Philipp Holzer
22f1983cc0
cleanup sysloglogger
2019-03-22 23:11:14 -04:00
Philipp Holzer
25b6db6aca
Moving Profiling to class
2019-03-22 23:07:39 -04:00
Philipp Holzer
4810ca570f
Refactored Logging environment (cleaned up)
2019-03-22 23:00:38 -04:00
Philipp Holzer
21158e7699
Syslog - Disabling
2019-03-22 22:55:46 -04:00
Philipp Holzer
d712d36814
Adding UID and Level To String mapping
2019-03-22 22:52:46 -04:00
Philipp Holzer
ae40963507
Code cleanup
2019-03-22 22:52:46 -04:00
Philipp Holzer
ec59e538fc
Adding ident
2019-03-22 22:52:46 -04:00
Philipp Holzer
9c5e0ae415
Adding SyslogLogger
2019-03-22 22:52:45 -04:00
Michael
0aab620d32
Enable remote authentication with HTTP Signatures
2019-03-19 06:44:51 +00:00
Michael
a876c20850
Use HTTP-Signature to authenticate when fetching photos.
2019-03-18 22:33:20 +00:00
Hypolite Petovan
0c738c4f8b
Exclude punctuation from domain in autolinker regular expression
2019-03-17 19:37:26 -04:00
Hypolite Petovan
8f96e383a7
Remove new lines from domain name part of autolinker regular expression in Util\Strings
...
- Fixes issue where the autolinker would include the next paragraph is a pathless URL was followed by new lines.
2019-03-11 14:37:56 -04:00
Hypolite Petovan
184b51ec56
Move autolink regex in Util\Strings
2019-03-09 23:25:53 -05:00
Hypolite Petovan
d40cbdce32
Remove unnecessary @throws tag in Util\Network
2019-03-08 22:39:08 -05:00
Michael
a911baf8e5
Avoid transmitting a deletion message when we don't have a key
2019-03-04 06:52:43 +00:00
Michael
888e2ce2a9
Added forgotten "use"
2019-03-03 07:05:57 +00:00
Michael
3237dab1a4
Added warning about an empty key
2019-03-03 07:01:11 +00:00
Michael
0b2cdf5d26
Issue 6395: Don't log details to avoid memory issues
2019-02-28 09:07:24 +00:00
Philipp Holzer
2b53784094
Reuse existing Strings::getRandomHex function
2019-02-27 18:32:25 +01:00
Hypolite Petovan
8c1db51a76
Improve Logger calls
...
- Replace various deprecated Logger::log calls
- Reassign log level for verbose log calls
2019-02-23 17:32:11 -05:00
Hypolite Petovan
1917f04153
Rewrite Term class
...
- Move term type constants from TERM_* to Term::*
- Move term object type constants from TERM_OBJ_* to Term::OBJECT_TYPE_*
- Add Term::isType() method
- Add Strings::startsWith() method
2019-02-23 17:32:11 -05:00
Hypolite Petovan
1a0398a5b3
Merge pull request #6723 from nupplaphil/issue/6658-worker_id
...
Adding worker ID to log
2019-02-23 08:38:08 -05:00
Philipp Holzer
3aae84edd1
[rendertime] Timing problem during addon config read
2019-02-23 01:24:08 +01:00
Philipp Holzer
ee37632695
Adding worker id & functionname to worker logs
2019-02-22 20:10:27 +01:00
Philipp Holzer
466f7a0ee5
adding test
2019-02-20 17:20:17 +01:00
Philipp Holzer
107293bd61
Fixing rendertime
2019-02-20 17:12:40 +01:00
Tobias Diekershoff
1df19d3553
Merge pull request #6697 from annando/memory-jsonld
...
Avoid memory issue in exception of JSON-LD parser
2019-02-19 09:40:01 +01:00
Michael
4facd1dfdb
Avoid memory issue in exception
2019-02-19 07:49:27 +00:00
Philipp Holzer
5e5c39b0e1
Refactored DependencyFactory for Profiler
2019-02-17 21:12:12 +01:00
Philipp Holzer
c36a0eabdb
fixing reset()
2019-02-17 10:34:48 +01:00
Philipp Holzer
3d07774509
removed wrong log-output
2019-02-17 01:57:59 +01:00
Philipp Holzer
88fd871844
refactoring & test fixing
2019-02-17 01:18:21 +01:00
Philipp Holzer
6d73dcbe3d
Adding composer & tests
2019-02-17 00:03:38 +01:00
Philipp Holzer
0a7861da65
Dependency of callstack moved one layer up
2019-02-16 23:17:10 +01:00
Philipp Holzer
5e6e1a8025
Introducing Profiler
2019-02-16 23:11:30 +01:00
Philipp Holzer
b79bd63231
move isDirectoryUsable to System
2019-02-05 22:30:18 +01:00
Philipp Holzer
6a9d73f7d9
Refactoring ConfigCacheLoader methods
2019-02-05 22:27:57 +01:00
Philipp Holzer
4af0119b73
3) Introducing ConfigFactory
2019-02-03 22:22:04 +01:00
Philipp Holzer
d7e35b5802
Making the processor name more explicit
2019-01-28 18:41:29 +01:00
Philipp Holzer
26af96f31a
improving code
2019-01-28 18:26:35 +01:00
Philipp Holzer
9fe1da5f94
Double backslash
2019-01-28 12:35:14 +01:00
Philipp Holzer
88e2cc9fa2
removing array prefix (compatibility)
2019-01-28 11:35:08 +01:00
Philipp Holzer
a5e12f53e8
Logger Unique ID
2019-01-28 11:21:48 +01:00
Michael
b90c8c6346
Logger: Display the correct file, function and line number
2019-01-24 14:23:42 +00:00
Michael Vogel
6e7ca479d6
Merge pull request #6508 from nupplaphil/logger_enh
...
Adding an explicit FriendicaProcessor
2019-01-24 11:15:57 +01:00
Philipp Holzer
7634663970
Adding an explicit FriendicaProcessor
2019-01-24 08:13:44 +01:00
Hypolite Petovan
64847e7cc8
Fix types in doc blocks/prototypes
2019-01-23 09:06:58 -05:00
Hypolite Petovan
0c19c4c75d
Fix missing reference to 'data' key in Util\Crypto
...
- Fix doc blocks
2019-01-23 09:06:57 -05:00
Hypolite Petovan
ce177f22c8
Fix doc blocks and return value type
2019-01-21 11:36:01 -05:00
Hypolite Petovan
7f2dc40601
Fix potential bugs without expected behavior change
...
- Fix uninitialized variables
- Fix potentially not set variables
- Fix wrong parameter default value
- Fix method scope
- Fix missing return value
2019-01-21 11:04:19 -05:00
Hypolite Petovan
ad9c67663d
Move Contact::Page_* constants to User::PAGE_FLAGS_*
2019-01-21 10:55:37 -05:00
Philipp Holzer
9e0be97703
Bugfixing legacy loglevel
2019-01-21 10:54:41 -05: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
cb3f09ae4f
Refactor namespaces
...
- Remove unused use statements
- Add required use statements
- Escape global classes
2019-01-21 10:43:42 -05:00
Hypolite Petovan
3282ce5389
Fix PHPDoc comments project-wide
2019-01-21 10:35:51 -05:00
Philipp Holzer
2e602afd3e
Add Monolog
2019-01-21 10:10:40 -05:00
Hypolite Petovan
2f49c4a058
Revert "Add monolog"
2019-01-21 10:08:09 -05:00
fabrixxm
c3c0332536
return default mimetype for unknown extensions
2019-01-21 10:00:47 -05:00
Philipp Holzer
df230126c9
skipStackFramesCount to 1 to skip static method
2019-01-21 09:59:11 -05:00
Philipp Holzer
45bde8fef1
Adding more information in case of warning (or dev)
2019-01-21 09:59:11 -05:00
Philipp Holzer
6150c2fa9c
Bugfixing
2019-01-21 09:59:11 -05:00
Philipp Holzer
7f7ed16dc2
Log format
2019-01-21 09:59:09 -05:00
Philipp Holzer
8f9c0fe149
Adding Develop and normal Logging instances
2019-01-21 09:59:08 -05:00
Hypolite Petovan
55e54bb950
Replace deprecated Addon::callHooks with Hook::callAll
...
- Update documentation
2019-01-21 09:50:56 -05:00
Hypolite Petovan
895b3abf32
Remove/replace killme() with *exit()
2019-01-21 09:49:17 -05:00
Michael
ce37e981cb
This fixes a problem when the URL is too long
2019-01-16 22:34:57 +00:00
Michael
ae2a8b796c
Avoid a notice in HTTP signature check, preparation for authentication
2019-01-15 06:31:12 +00:00
Michael
9bec202232
Adding the date to signed get requests as well
2019-01-14 16:33:23 +00:00
Michael
2f2184cf12
Date check added for HTTP signatures
2019-01-14 16:03:13 +00:00
Michael
aa4aaf1971
Enable communication with Peertube
2019-01-14 12:10:11 +00:00
Michael
c1dec50248
Avoiding some notices
2019-01-13 18:03:13 +00:00
Michael
8b5b66838d
Issue 6438: Avoid fatal error
2019-01-13 16:00:27 +00:00
Michael
d113ccd93c
Making Friendica compatible to Nextcloud Social
2019-01-13 09:38:01 +00:00
Hypolite Petovan
a20fa6a3a9
Add ensureQueryParameter method to Util\Strings
2019-01-11 19:27:56 -05:00
Hypolite Petovan
5e1ceb57de
Escape global namespaced get_app() calls
...
- Add deprecated status
2019-01-03 21:27:36 -05:00
Hypolite Petovan
37c7a18d00
Replace latin-1 by latin1 in charset detection
...
- Simplify conditional for charset conversion
2018-12-29 00:43:00 -05:00
Michael Vogel
94eca77041
Merge pull request #6315 from MrPetovan/bug/6309-add-fulltext-index-profile
...
Rework mod/match and mod/msearch
2018-12-27 18:04:06 +01:00
Hypolite Petovan
5b74f066f2
Fix formatting in Util\Strings
2018-12-26 11:02:50 -05:00
Hypolite Petovan
acaee626f5
Remove include/ requires that are now done directly from Composer
2018-12-24 09:56:25 -05:00
Michael
c485ca6f06
Fix ActivityPub with Nextcloud
2018-12-17 20:13:56 +00:00
Hypolite Petovan
b6e1571b1e
Fix various notices
2018-12-15 04:32:47 -05:00
Michael
cced018825
Possibly fix a memory issue with large posts
2018-12-11 18:48:33 +00:00
Michael
491fc5f78a
Issue 6168: "redir" now mostly use OWA
2018-12-04 07:12:55 +00:00
Hypolite Petovan
458981f75c
Replace x() by isset(), !empty() or defaults()
...
- Remove extraneous parentheses around empty() calls
- Remove duplicate calls to intval(), count() or strlen() after empty()
- Replace ternary operators outputting binary value with empty() return value
- Rewrite defaults() without x()
2018-11-30 09:06:22 -05:00
Adam Magness
218f0734be
Rename removeTags to escapeTags
...
rename function and update calls.
2018-11-09 13:29:42 -05:00
Adam Magness
063f0e9cb0
Rename escapeTags to escapeHtml
...
rename function and update calls.
2018-11-09 13:27:58 -05:00
Adam Magness
b5a97c1abe
Move getTags to BBCode
...
move getTags function to BBCode class and update calls.
2018-11-09 13:24:19 -05:00
Adam Magness
e4354a0d7b
Update and Remove isValidEmail
...
change function calls, and remove unneeded function.
2018-11-09 13:18:42 -05:00
Adam Magness
087f50d820
Missing Use statements
...
missing use
2018-11-08 11:58:42 -05:00
Adam Magness
ffc406d819
normalise_link calls
...
implement normaliseLink function
2018-11-08 11:28:29 -05:00
Adam Magness
5276c28a78
link_compare calls
...
implement compareLink function.
2018-11-08 10:46:50 -05:00
Adam Magness
6fc9c6de3b
base64url calls
...
implement base64UrlEncode and base64UrlDecode functions
2018-11-08 10:37:08 -05:00
Adam Magness
916b3e551e
format_network_name calls
...
implement formatNetworkName function
2018-11-08 10:24:47 -05:00
Adam Magness
b99925060a
autoname calls
...
implement getRandomName function
2018-11-08 10:22:20 -05:00
Adam Magness
0e01568ccd
escape_tags calls
...
implement escapeTags function
2018-11-08 10:20:03 -05:00
Adam Magness
a0f65ca7a1
notags calls
...
implement removeTags function
2018-11-08 10:14:37 -05:00
Adam Magness
991f259ecb
random_string calls
...
implement getRandomHex function
2018-11-08 08:45:46 -05:00
Adam Magness
fd597472f1
Split text.php to Strings class
...
move functions to new strings class
Split text.php to Strings class
move functions to new Strings class
2018-11-08 08:33:28 -05:00
Michael
cd2c7f782f
We now directly support the custom emojis from Mastodon
2018-11-07 20:34:03 +00:00
Adam Magness
352da9bcf3
Update function calls
...
update function calls for moved functions
2018-11-06 09:52:58 -05:00
Philipp Holzer
049cd963f3
Using random_int directly
2018-11-05 21:15:30 +01:00
Philipp Holzer
6e10bdf361
Move random Digits to Crypto class
2018-11-05 21:02:54 +01:00
Adam Magness
186cd1d415
Revert "Move methods to new Util/Strings class"
...
This reverts commit 97fcf23371
.
2018-11-05 13:07:15 -05:00
Adam Magness
9e51be7554
Revert "Update function calls"
...
This reverts commit 748fb8b946
.
2018-11-05 13:07:07 -05:00
Adam Magness
748fb8b946
Update function calls
...
update function calls to new class
2018-11-05 07:40:18 -05:00
Adam Magness
97fcf23371
Move methods to new Util/Strings class
...
move string methods from xml to strings class.
2018-11-05 07:31:45 -05:00
Adam Magness
6cc339031a
Rename functions
...
rename functions
2018-11-05 07:24:14 -05:00
Adam Magness
ae4aab872f
forgotten self
...
forgotten self references
2018-11-05 07:24:14 -05:00
Adam Magness
84e900d96f
Move to XML
...
move functions from text to xml
2018-11-05 07:24:14 -05:00
Michael
8f27e3aeb1
Support for fetching non-public content / preparations for forum posts
2018-11-03 21:37:08 +00:00
Michael
1395bdc188
Preparations for a relocation message / fix for notice
2018-11-02 21:57:06 +00:00
Adam Magness
35abc4bb64
get markup template
...
implement getMarkupTemplate function
2018-10-31 10:44:06 -04:00
Adam Magness
91facd2d0a
replace macros
...
implement new replaceMacros function
2018-10-31 10:35:50 -04:00
Adam Magness
50da89d861
Logger Levels
...
update logger levels in calls
2018-10-30 09:58:45 -04:00
Adam Magness
14fde5dc9b
Log function
...
implement log() function.
2018-10-30 09:57:14 -04:00
Michael
58f82e084d
Preparations to work with BCC
2018-10-24 19:19:51 +00:00
vinzv
cb75c40f4e
adapted profile pic resize to 300px for whole system
2018-10-23 16:36:57 +02:00
Tobias Diekershoff
dbe49a0c1a
Merge pull request #5998 from annando/ap-queue
...
Unsuccessful ActivitiyPub transmission are now deferred
2018-10-23 06:54:11 +02:00
Michael
e3e714a45f
Unsuccessful ActivitiyPub transmission are now deferred
2018-10-23 03:54:18 +00:00
Hypolite Petovan
e511790d62
Move NULL_DATE from boot.php to DBA::NULL_DATETIME
...
- Add DBA::NULL_DATE constant
2018-10-22 16:50:55 -04:00
Hypolite Petovan
c6f0bea51d
Move $strings from App to Core\L10n
...
- Add L10n::init() call in App constructor
- Improve pushLang/popLang
- Remove no longer needed references to App
2018-10-22 15:58:42 -04:00
Michael
5c13ecdf6e
Improved parsing of AP profiles
2018-10-22 07:24:47 +00:00
Philipp Holzer
4392858662
Move Global Functions - Part 3
...
- Replaced every CACHE definition
- Moved check_url to App->checkURL()
- Removed unused definition "ZCURL_TIMEOUT"
2018-10-20 18:19:55 +02:00
Hypolite Petovan
ec0d3a6eac
Merge pull request #5946 from JonnyTischbein/move_include_security
...
Move and Split include/security
2018-10-19 08:55:08 -04:00
Jonny Tischbein
f3fc1f36ca
Renaming functions + moving functions from security to Model/Item and BaseModule + fix multiline comments
2018-10-17 21:30:41 +02:00
Jonny Tischbein
45e5a7f59f
remove unsed require_onces of security.php
2018-10-17 18:39:27 +02:00
Jonny Tischbein
05be2db725
Move include/security tp /src/Core/Authentication and /src/Util/Security
2018-10-17 14:19:58 +02:00
Hypolite Petovan
c4318fe05e
Fix notices in Parse URL feature
2018-10-16 18:27:13 -04:00
Jonny Tischbein
3a95644848
Add Support for relativeDateTime in future + update Admin user waiting for deleting table header
2018-10-14 22:57:44 +02:00
Michael
d23386f9b2
Catching error when compacting doesn't work
2018-10-13 13:17:10 +00:00
Hypolite Petovan
a066befba5
Merge pull request #5878 from nupplaphil/curl_response_refactoring
...
Curl response refactoring
2018-10-10 18:31:49 -04:00
Philipp Holzer
b2e7ce47b3
Renaming Curl to CurlResult
2018-10-10 22:08:13 +02:00
Philipp Holzer
ffbc688797
Curl Response Refactoring
...
- refactored Network::getCurl()
- replaced every Network::getCur() execution with a Curl Response
2018-10-10 21:50:13 +02:00
Hypolite Petovan
67afa069ab
Merge pull request #5877 from annando/issue-5859
...
Issue 5859: Avoid returning empty arrays
2018-10-10 15:23:39 -04:00
Philipp Holzer
7c73e8634c
Curl Response Refactoring
...
- refactored Network::post()
- replaced every Network::post() execution with the new Curl container
2018-10-10 21:15:26 +02:00
Michael
c4da138eee
Issue 5859: Avoid returning empty arrays
2018-10-10 19:15:16 +00:00
Philipp Holzer
2dec8895a9
Curl Response Refactoring
...
- extended Curl to parse Curl Response
- refactored Network::curl()
- replaced every Network::curl() execution with the new Curl container
2018-10-10 21:08:43 +02:00
Philipp Holzer
e6b1f9ef09
friendica-5875 Uncaught Error: Call to undefined method Friendica\App::getCurlCode() fixed
2018-10-10 18:10:38 +02:00
Philipp Holzer
3d04562c87
some more renamings & doku
2018-10-10 08:54:18 +02:00
Philipp Holzer
5a02e39a65
Rename App Methods
...
- renamed a lot of App methods to CamelCase
- replaced direct public variables with get-/set-Methods
2018-10-10 00:16:06 +02:00
Michael
30ad6d60fd
Duplicated line removed
2018-10-07 20:51:39 +00:00
Michael
3a74f3364d
Switch to parsing compacted JSON data
2018-10-07 13:37:05 +00:00
Michael
d4f6261b81
Avoid notice
2018-10-02 08:31:58 +00:00
Michael
e71f497295
Renamed
2018-09-30 08:14:05 +00:00
Michael
30f67d6e14
removed unneded line
2018-09-27 21:14:01 +00:00
Michael
c4994626e9
Corrected function names
2018-09-27 13:31:32 +00:00
Michael
de8787dd5b
Changed comment
2018-09-27 12:01:16 +00:00
Michael
897929ad40
Avoid warnings, added documentation
2018-09-26 22:45:13 +00:00
Michael
9c62727e1d
Added doxygen data
2018-09-26 22:02:14 +00:00
Michael
9ec30010c5
APContact stuff is moved to an own class
2018-09-26 17:24:29 +00:00
Michael
e91a1dfa8e
Cleaned code
2018-09-25 21:18:37 +00:00
Michael
feeec908d3
We can delete notes / changed credits
2018-09-23 09:20:25 +00:00
Michael
c083ae047c
Merge remote-tracking branch 'upstream/2018.08-rc' into ap1
2018-09-22 15:18:53 +00:00
Michael
b44fc62708
Improvements to signature check, private posts do work now again
2018-09-21 22:31:33 +00:00
Michael
355346298b
LD signatures will now be checked when receiving messages
2018-09-21 03:39:32 +00:00
Michael
752b5fe284
Outgoing posts are now signed
2018-09-20 21:45:23 +00:00
Michael
11310f4cf0
Relocated AP signature functions, reduced magic auth functions
2018-09-20 18:16:14 +00:00
Michael
0866fbaf8c
Code cleaning / wrong table for flags
2018-09-20 09:50:03 +00:00
Michael
0d51474e73
Relocated function
2018-09-20 05:37:01 +00:00
Michael
34cb0aa406
JSON-LD stuff is now in a separate file
2018-09-20 05:30:07 +00:00
Michael Vogel
e68c48e88f
Merge pull request #5763 from MrPetovan/task/improve-getsiteinfo
...
Use OEmbed data when available no matter the type
2018-09-17 06:40:04 +00:00
Hypolite Petovan
102adf86ae
Restore partial condition in OEmbed block of ParseUrl::getSiteInfo
2018-09-16 09:18:31 -04:00
Hypolite Petovan
5b5e5ef4db
Use OEmbed data when available no matter the type
2018-09-13 21:50:52 -04:00
Michael
8c00e88f79
The endless saga of the fight against notices continues
2018-09-13 21:11:52 +00:00
Michael
99244d33f5
Fix for #5732 - too much links had been detected as photos
2018-09-07 06:10:33 +00:00
Michael
2592c3891c
forgotten $
2018-09-06 21:10:48 +00:00
Michael
1d4a5402ff
Picture posts do work again - everything else should work as well
2018-09-06 20:30:16 +00:00
Michael
04fb885857
Fix: Posts with pictures will now look good again on connector networks
2018-09-06 04:24:34 +00:00
Hypolite Petovan
59d06b6c78
Merge pull request #5719 from annando/notices-yeah
...
Good news, everyone - again somce notices removed
2018-09-04 19:09:11 -04:00
Michael
821429fdf1
Good news, everyone - again somce notices removed
2018-09-04 17:48:09 +00:00
Hypolite Petovan
9744f0e780
Update ParseUrl::getSiteinfo type recognition
...
- Added obsolete twitter card type provision
2018-09-02 17:50:27 -04:00
Hypolite Petovan
8bcc3c6860
Fix formatting in Util/ParseUrl
...
- Remove commented out code
- Replace double quotes with simple quotes
- Remove parentheses for language construct
- Add spaces around operators
- Rename variables
2018-09-02 17:46:28 -04:00
Michael
fd7e45042a
The days are getting shorter, like the list of removed notices ...
2018-09-02 07:47:48 +00:00
Michael
2079caea14
Issue 3501: Mail contacts can be added again
2018-08-26 19:49:39 +00:00
Michael Vogel
20127a77b3
Removing a small notice in the network.php ( #5652 )
2018-08-22 18:46:44 -04:00
Hypolite Petovan
c0e728e7e5
Fix query string parsing border case in Util\Proxy
2018-08-05 15:57:04 +02:00
Michael Vogel
2c8c803d64
Avid notices and warnings ( #5546 )
2018-08-02 19:07:20 +02:00
Roland Häder
4d39164c1e
[WIP] Rewrite to Proxy class: ( #5507 )
...
* Rewrite to Proxy class:
- introduced new Friendica\Network\Proxy class for in exchange of proxy_*()
functions
- moved also all PROXY_* constants there as Proxy::*
- removed now no longer needed mod/proxy.php loading as composer's auto-load
will do this for us
- renamed those proxy_*() functions to better names:
+ proxy_init() -> Proxy::init() (public)
+ proxy_url() -> Proxy::proxifyUrl() (public)
+ proxy_parse_html() -> Proxy::proxifyHtml() (public)
+ proxy_is_local_image() -> Proxy::isLocalImage() (private)
+ proxy_parse_query() -> Proxy::parseQuery() (private)
+ proxy_img_cb() -> Proxy::replaceUrl() (private)
* Ops, need to set $a here ...
* CR request:
- moved Proxy class to Friendica\Module
- extended BaseModule
* Ops, no need for own instance of $a when self::getApp() is around.
* Proxy-rewrite:
- proxy_url() and proxy_parse_html() are both non-module functions (now
methods)
- so they must be splitted into a seperate class
- also the SIZE_* and DEFAULT_TIME constants are both not relevant to module
* No instances from utility classes
* Fixed error:
- proxify*() is now located in `Friendica\Util\ProxyUtils`
* Moved back to original place, ops? How did they move here? Well, it was not
intended by me.
* Removed duplicate (left-over from split) constants and static array. Thank to
MrPetovan finding it.
* Renamed ProxyUtils -> Proxy and aliased it back to ProxyUtils.
2018-07-30 22:06:22 -04:00
Roland Häder
bf87ad4fcf
Fixed E_NOTICE in listing worker queue and new utilities class added ( #5521 )
...
* Fixes for E_NOTICE in workqueue:
- introduced class `Friendica\Util\Arrays` which will hold static methods for
handling arrays that cannot be done with PHP's functions, like implode() on
multi-dimensional arrays
- rewrote old-school for() loop to foreach()
* Added intial unit test with some tests on empty delimiters and/or sinle and
multi-dim array.
* Added test for for 3-dimensional arrays, thanks to nupplaphil's feedback.
2018-07-30 21:24:26 -04:00
Hypolite Petovan
ecea7425f8
Rename DBA::is_result to DBA::isResult
2018-07-23 11:04:14 -04:00
Hypolite Petovan
0ec44f3e8a
Rename DBM method calls to DBA method calls
2018-07-23 11:02:24 -04:00
Roland Häder
c17adaf333
Uncommon logger levels in Friendica ( #5453 )
...
* "normal" is an uncommon logger level:
- changed LOGGER_NORMAL -> LOGGER_INFO
- added LOGGER_WARNING (a common logger level)
* Used constants instead of values (MrPetovan)
2018-07-22 14:07:44 -04:00
Hypolite Petovan
af6dbc654f
Rename Friendica\Database\dba to Friendica\Database\DBA
2018-07-20 08:19:26 -04:00
Hypolite Petovan
daa1177e3a
Update use statement lists with new Friendica\Database\dba class
...
- Remove unused use statement
- Remove superfluous use statements (classes in the same namespace)
- Add missing use statements
2018-07-19 22:15:21 -04:00
Hypolite Petovan
1b6727fb9c
Fix notice in Util\Network
2018-07-17 21:00:22 -04:00
Hypolite Petovan
065d10e587
Fix function comments in Util\Network
2018-07-15 08:03:12 -04:00
Michael Vogel
0360f7197a
Several more warnings ... ( #5340 )
...
* Some more warnings removed
* Even more warnings ...
* Will it ever end? ;-)
* Avoid warning in dbstructure
* Origin and OStatus ...
* There are more warnings solved ... yeah!
* And again ...
* We are not done yet
* And more ...
* And some new places ...
* And more in the feeds
* Avoid some more
* And some backend stuff
* Notifications cleared
* Some more stuff
* and again ...
* It's getting fewer ...
* Some warnings had been hidden in the notifications
* Fix the fix
* And another missing one ...
* We need the owner here, not the user
* Forgotten user
* And more ...
* And some more warnings disappeared ...
* Some more frontend warnings
* Some backend warnings removed
* Fixed sidebar for "vier"
* And more ...
* Some more ...
* And something for "remote self"
* Am I stuck in an endless loop?
* Fix: Clear tag and file field on update
* Preset page content
2018-07-10 08:27:56 -04:00
Michael
1d745c25a7
Some more places ...
2018-07-08 12:58:43 +00:00
Michael
7d6933c898
Avoid "Trying to get property of non-object"
2018-07-08 11:46:05 +00:00
Philipp Holzer
3f7e4f5bb6
redesign of locking & caching
...
- New Factory "CacheDriverFactory" for Cache and Locks
- Adding Redis/Memcached Locking
- Moved Lock to Core
- other improvements
2018-06-28 22:57:17 +02:00
Philipp Holzer
acf6a5cb9e
minor changes
2018-06-26 23:44:30 +02:00
Philipp Holzer
d409a92ca2
minor changes
2018-06-26 23:43:43 +02:00
Philipp Holzer
dd085ae592
minor changes
2018-06-26 23:42:26 +02:00
Philipp Holzer
130893673c
Bugfixing ILockDriver (forgot isLocked)
2018-06-26 23:33:02 +02:00
Philipp Holzer
a57e6cfa1b
Moved Lock.php back to Utils
2018-06-26 23:28:07 +02:00
Philipp Holzer
2260b9c873
Merge branch 'develop' of https://github.com/friendica/friendica into develop
2018-06-26 22:56:08 +02:00
Philipp Holzer
0218d16335
Lock abstraction (like the Cache)
...
- adding interface
- adding seperate drivers
- moving Lock to the Core package
2018-06-26 22:31:04 +02:00
Hypolite Petovan
e3584daef9
Merge pull request #5167 from VVelox/develop
...
a domain name is unlikely to be both a CNAME and A record
2018-06-26 08:05:34 -04:00
Zane C. Bowers-Hadley
8875cc7419
remove duplicate check
2018-06-26 05:03:45 -05:00
Hypolite Petovan
a5550b4702
Merge pull request #5253 from rabuzarus/20180616_-_magic_auth_test_2
...
Port hubzillas OpenWebAuth - remote authentification
2018-06-20 17:46:04 -04:00
rabuzarus
9f493357f4
port hubzillas OpenWebAuth - fix wrong table name + fix wrong method name
2018-06-20 20:11:26 +02:00
rabuzarus
149142b4bc
port hubzillas OpenWebAuth - rename Verify class to OpenWebAuthToken
2018-06-20 19:24:02 +02:00
rabuzarus
1ab3f7bfc8
port hubzillas OpenWebAuth - HTTPSignature - comment out some ActivityPub parts
2018-06-20 19:05:33 +02:00
rabuzarus
863a49d8e7
port hubzillas OpenWebAuth - rework the HTTPHeaders class
2018-06-20 18:52:37 +02:00
rabuzarus
1148c29916
port hubzillas OpenWebAuth - use random_bytes() in crypto class + bugfixes
2018-06-20 18:45:37 +02:00
rabuzarus
f0235c4a98
port hubzillas OpenWebAuth - rename some methods and classes
2018-06-20 18:38:23 +02:00
miqrogroove
79446a625d
Update Emailer.php
2018-06-19 16:58:06 -04:00
miqrogroove
5b8619f501
Add Missing Fifth Argument to mail() Function Call
...
This is desperately needed to fix Issue #5190 . In case of any unexpected problem, the admin can use
`$a->config['system']['sendmail_params'] = false;`
2018-06-19 16:23:42 -04:00