Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Cool Fire
hexchat
Commits
f317076c
Commit
f317076c
authored
Mar 29, 2013
by
RichardHitt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #479 from RichardHitt/urlgrab
Strip all \r and \n, not just a single \r.
parents
1ed3879c
503968c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/common/url.c
src/common/url.c
+1
-1
No files found.
src/common/url.c
View file @
f317076c
...
...
@@ -288,7 +288,7 @@ url_check_line (char *buf, int len)
int
start
,
end
;
g_match_info_fetch_pos
(
gmi
,
0
,
&
start
,
&
end
);
if
(
po
[
end
-
1
]
==
'\r'
)
while
(
end
>
start
&&
(
po
[
end
-
1
]
==
'\r'
||
po
[
end
-
1
]
==
'\n'
)
)
po
[
--
end
]
=
0
;
if
(
g_strstr_len
(
po
+
start
,
end
-
start
,
"://"
))
url_add
(
po
+
start
,
end
-
start
);
...
...
Write
Preview
Markdown
is supported
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