Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
cbe91093
Commit
cbe91093
authored
Aug 03, 2016
by
Dominik Hebeler
Browse files
Der Dublettenfilter sollte nun http[s]:// und www. ignorieren
parent
ef52af00
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
cbe91093
...
...
@@ -987,6 +987,13 @@ class MetaGer
}
public
function
addLink
(
$link
)
{
if
(
strpos
(
$link
,
"http://"
)
===
0
)
$link
=
substr
(
$link
,
7
);
if
(
strpos
(
$link
,
"https://"
)
===
0
)
$link
=
substr
(
$link
,
8
);
if
(
strpos
(
$link
,
"www."
)
===
0
)
$link
=
substr
(
$link
,
4
);
$link
=
trim
(
$link
,
"/"
);
$hash
=
md5
(
$link
);
if
(
isset
(
$this
->
addedLinks
[
$hash
]))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment