| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
will be checked in item_store() anyway)
(cherry picked from commit e530476e6c5d2319f3a0a09dfe73ec181e923325)
Co-authored-by: Mario <mario@mariovavti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes the issue where the text after the URL would be included in
the link if it was immediately followed by a newline.
Example:
https://example.com
this is a test.
Would become:
#^[url=https://example.com_this]https://example.com_this[/url]
is a test
(cherry picked from commit 687cda367316edb9f84b3e425e76c9e9279e96be)
Co-authored-by: Harald Eilertsen <haraldei@anduin.net>
|
|
|
|
|
| |
(cherry picked from commit e2cfe245b79cb08930c0ba2258c26803361d4b2a)
Co-authored-by: Mario Vavti <mario@mariovavti.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When passing a content throught the `markdown_to_bb` function
to convert any markdown in the content, any recognized URLs in the
content would be converted to BBCode links as a post processing step
after the main conversion.
After commit a1ccacb825edac6ae36e5db4f62ebfe7aeaebe9f this did no longer
consider content within code blocks, and would thus convert them as
to BBCode links.
Example: The following content
[code]
example url: https://example.com
[/code]
Would be converted to
[code]
example url: [url=https://example.com]https://example.com[/url]
[/code]
Prior to commit a1ccacb825edac6ae36e5db4f62ebfe7aeaebe9f, code blocks
would be protected, so this would not happen.
This patch removes the post processing step for converting plain URLs to
links completely from this routine. This functionality is in any case
covered in the actual BBCode parser where it belongs.
This will have some other side effects as well, such as images and links
created using Markdown, will not be converted to [zmg] or [zrl] tags
where that would be done automatically before. If you intend to use a
[zrl] or [zmg] tag, you now need to do so explicitly.
(cherry picked from commit 803cd74b4881a617a56be4fb5780d6d25fd5433f)
Co-authored-by: Harald Eilertsen <haraldei@anduin.net>
|
|
|
|
|
|
|
| |
but the previous logic was throwing error in postgresql (while the result was correct anyway)
(cherry picked from commit a5f0253aef7784ace13fa6bd87048b86d9cd50c3)
Co-authored-by: Mario Vavti <mario@mariovavti.com>
|
| |
|
| |
|
|
|
|
| |
add the token to the original ACL instead of rewriting the ACL to theitem ACL - it probably makes much more sense that way
|
| |
|
| |
|
|
|
|
| |
transition and re-add scope sql to item_permissions_sql()
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
since forkawesome is dead
|
| |
|
| |
|
|
|
|
| |
the post_wall permission.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Add module test helper expectRedirectTo + api docs
See merge request hubzilla/core!2138
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
Mainly missing variables for templates, and channel entries.
|
| |
|
|\
| |
| |
| |
| | |
Fix test warnings
See merge request hubzilla/core!2134
|
| |
| |
| |
| |
| | |
Referencing undefined array keys are not allowed anymore, so we need to
check whether they exist first.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
because timezone is attached
|
|\ \
| | |
| | |
| | |
| | | |
Skip checking MFA status for WebDAV and CardDAV requests.
See merge request hubzilla/core!2131
|
| |/ |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When fetching the default timouts from config, the result is converted
to an int via `intval()`, the result of that again is compared strictly
to `false`. Since 0 !== false, the default values will never be used,
and 0 (no timeout) is passed to curl.
This cause requests to hang indefinitely (or until they are killed) when
receiving actions that require a lookup or fetch to another site as part
of the request processing. (E.g webfinger, or fetching objects that we
received an announce action for.) This again cause the request never to
return a useful status to the site sending the action, and could cause
them to think the Hubzilla site is dead.
This patch fixes this by comparing the fetched value from config to 0
instead of false, making the defaults work again if the config is not
set (or set to 0).
|
|
|
|
| |
add test.
|