Review main Merged

71511[BUGFIX] Properly set softRefParams in LinkAnalyzer

Oli Bartsch CR +2 V +2 Easy +14 −5 updated 10/09/21, 09:29

Commit message

This correctly sets "subst" as a value of the
softRefParams array. Previously "subst" was
set as key, which only worked because of a
non strict "in_array" check, which also
returned TRUE for this case, but then broke
with the refactoring in #94687.

Additionally the regular expression of the
UrlSoftReferenceParser, used to find urls
in content, also got extended in #94687.
This is now partially reset to not longer
match links in tag attributes. This otherwise
would lead to duplicate entries, since those
urls are already matched by the
TypolinkTagSoftReferenceParser.

The impact of the changed regular expression
was overlooked beforehand, due to the bug
in LinkAnalyzer.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 2

Files 3