Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue 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
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Archive
Alchemy Viewer
Commits
4a187aec
Commit
4a187aec
authored
9 years ago
by
Ansariel
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-5756: Unicode characters in online notifications get stripped
parent
2e40ff7f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/contributions.txt
+1
-0
1 addition, 0 deletions
doc/contributions.txt
indra/llui/llurlregistry.cpp
+3
-2
3 additions, 2 deletions
indra/llui/llurlregistry.cpp
indra/llui/llurlregistry.h
+1
-0
1 addition, 0 deletions
indra/llui/llurlregistry.h
with
5 additions
and
2 deletions
doc/contributions.txt
+
1
−
0
View file @
4a187aec
...
@@ -186,6 +186,7 @@ Ansariel Hiller
...
@@ -186,6 +186,7 @@ Ansariel Hiller
STORM-1984
STORM-1984
STORM-1979
STORM-1979
MAINT-5533
MAINT-5533
MAINT-5756
Aralara Rajal
Aralara Rajal
Arare Chantilly
Arare Chantilly
CHUIBUG-191
CHUIBUG-191
...
...
This diff is collapsed.
Click to expand it.
indra/llui/llurlregistry.cpp
+
3
−
2
View file @
4a187aec
...
@@ -41,7 +41,8 @@ LLUrlRegistry::LLUrlRegistry()
...
@@ -41,7 +41,8 @@ LLUrlRegistry::LLUrlRegistry()
mUrlEntry
.
reserve
(
20
);
mUrlEntry
.
reserve
(
20
);
// Urls are matched in the order that they were registered
// Urls are matched in the order that they were registered
registerUrl
(
new
LLUrlEntryNoLink
());
mUrlEntryNoLink
=
new
LLUrlEntryNoLink
();
registerUrl
(
mUrlEntryNoLink
);
mUrlEntryIcon
=
new
LLUrlEntryIcon
();
mUrlEntryIcon
=
new
LLUrlEntryIcon
();
registerUrl
(
mUrlEntryIcon
);
registerUrl
(
mUrlEntryIcon
);
mLLUrlEntryInvalidSLURL
=
new
LLUrlEntryInvalidSLURL
();
mLLUrlEntryInvalidSLURL
=
new
LLUrlEntryInvalidSLURL
();
...
@@ -223,7 +224,7 @@ bool LLUrlRegistry::findUrl(const std::string &text, LLUrlMatch &match, const LL
...
@@ -223,7 +224,7 @@ bool LLUrlRegistry::findUrl(const std::string &text, LLUrlMatch &match, const LL
std
::
string
url
=
text
.
substr
(
match_start
,
match_end
-
match_start
+
1
);
std
::
string
url
=
text
.
substr
(
match_start
,
match_end
-
match_start
+
1
);
LLUrlEntryBase
*
stripped_entry
=
NULL
;
LLUrlEntryBase
*
stripped_entry
=
NULL
;
if
(
LLStringUtil
::
containsNonprintable
(
url
))
if
(
match_entry
!=
mUrlEntryNoLink
&&
LLStringUtil
::
containsNonprintable
(
url
))
{
{
LLStringUtil
::
stripNonprintable
(
url
);
LLStringUtil
::
stripNonprintable
(
url
);
...
...
This diff is collapsed.
Click to expand it.
indra/llui/llurlregistry.h
+
1
−
0
View file @
4a187aec
...
@@ -98,6 +98,7 @@ private:
...
@@ -98,6 +98,7 @@ private:
LLUrlEntryBase
*
mLLUrlEntryInvalidSLURL
;
LLUrlEntryBase
*
mLLUrlEntryInvalidSLURL
;
LLUrlEntryBase
*
mUrlEntryHTTPLabel
;
LLUrlEntryBase
*
mUrlEntryHTTPLabel
;
LLUrlEntryBase
*
mUrlEntrySLLabel
;
LLUrlEntryBase
*
mUrlEntrySLLabel
;
LLUrlEntryBase
*
mUrlEntryNoLink
;
};
};
#endif
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment