Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gajim-plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
56
Issues
56
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gajim
gajim-plugins
Commits
059fa25e
Commit
059fa25e
authored
Aug 06, 2018
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[preview] Fix faulty conversion of text to url
parent
271a95e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
url_image_preview/url_image_preview.py
url_image_preview/url_image_preview.py
+5
-0
No files found.
url_image_preview/url_image_preview.py
View file @
059fa25e
...
...
@@ -168,6 +168,11 @@ class Base(object):
def
print_real_text
(
self
,
real_text
,
text_tags
,
graphics
,
iter_
,
additional_data
):
if
len
(
real_text
.
split
(
' '
))
>
1
:
# urlparse dont recognises spaces as URL delimiter
log
.
error
(
'Url with text will not be displayed: %s'
,
real_text
)
return
urlparts
=
urlparse
(
real_text
)
if
not
self
.
_accept_uri
(
urlparts
,
real_text
,
additional_data
):
return
...
...
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