Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
linkit
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
linkit
Merge requests
!35
Resolve
#3078075
"Detect and strip"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Resolve
#3078075
"Detect and strip"
issue/linkit-3078075:3078075-detect-and-strip
into
7.x
Overview
5
Commits
12
Pipelines
7
Changes
8
1 unresolved thread
Hide all comments
Open
Dieter Holvoet
requested to merge
issue/linkit-3078075:3078075-detect-and-strip
into
7.x
1 year ago
Overview
5
Commits
12
Pipelines
7
Changes
1
1 unresolved thread
Hide all comments
Expand
Closes
#3078075
0
0
Merge request reports
Compare
version 3
version 10
39dfcf0c
6 months ago
version 9
0355064f
6 months ago
version 8
61a704e7
6 months ago
version 7
7f257f36
6 months ago
version 6
07077dc3
6 months ago
version 5
07077dc3
6 months ago
version 4
76ae7990
10 months ago
version 3
b76722c9
1 year ago
version 2
55e9e291
1 year ago
version 1
75bc7653
1 year ago
7.x (HEAD)
and
version 4
latest version
af57269e
12 commits,
5 months ago
version 10
39dfcf0c
11 commits,
6 months ago
version 9
0355064f
10 commits,
6 months ago
version 8
61a704e7
10 commits,
6 months ago
version 7
7f257f36
9 commits,
6 months ago
version 6
07077dc3
8 commits,
6 months ago
version 5
07077dc3
64 commits,
6 months ago
version 4
76ae7990
8 commits,
10 months ago
version 3
b76722c9
7 commits,
1 year ago
version 2
55e9e291
5 commits,
1 year ago
version 1
75bc7653
3 commits,
1 year ago
Show latest version
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Plugin/Linkit/Matcher/EntityMatcher.php
+
4
−
2
Options
@@ -570,8 +570,10 @@ class EntityMatcher extends ConfigurableMatcherBase {
// The link points to this domain. Make it relative so it can be
// matched in Url::fromUserInput().
$host
=
parse_url
(
$user_input
,
PHP_URL_HOST
);
$host_end
=
strpos
(
$user_input
,
$host
)
+
strlen
(
$host
);
$user_input
=
substr
(
$user_input
,
$host_end
);
$port
=
parse_url
(
$user_input
,
PHP_URL_PORT
);
$host_and_port
=
$host
.
(
$port
?
':'
.
$port
:
''
);
$host_and_port_end
=
strpos
(
$user_input
,
$host_and_port
)
+
strlen
(
$host_and_port
);
$user_input
=
substr
(
$user_input
,
$host_and_port_end
);
}
}
Loading