Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Urvil Shah
/
MobEasyEditor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0ec51217
authored
Apr 27, 2018
by
Urvil Shah
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Prevent Wrapping the Same Url Wrap all the time
parent
e908684d
Pipeline
#7519
passed with stages
in 22 minutes 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
Mobile.Search.Web/Controllers/TemplateController.cs
Mobile.Search.Web/Controllers/TemplateController.cs
View file @
0ec51217
...
...
@@ -160,7 +160,7 @@ namespace Mobile.Search.Web.Controllers
if
(!
isSendEmail
)
WrapUrl
=
true
;
HashSet
<
string
>
UrlWrap
=
new
HashSet
<
string
>();
while
(
m
.
Success
&&
WrapUrl
)
{
count
=
count
-
1
;
...
...
@@ -171,14 +171,15 @@ namespace Mobile.Search.Web.Controllers
{
to_replace
=
String
.
Format
(
"{{{{WrapAdvertiserUnsubscribeUrl('{0}')}}}}"
,
m
.
Groups
[
1
]);
}
if
(
m
.
Groups
[
1
].
Value
.
Count
()>
0
&&
!
m
.
Groups
[
1
].
Value
.
Contains
(
"anchor"
))
if
(
m
.
Groups
[
1
].
Value
.
Count
()>
0
&&
!
m
.
Groups
[
1
].
Value
.
Contains
(
"anchor"
)
&&
!
UrlWrap
.
Contains
(
m
.
Groups
[
1
].
Value
)
)
{
value
=
value
.
Replace
(
m
.
Groups
[
1
].
Value
,
to_replace
);
UrlWrap
.
Add
(
m
.
Groups
[
1
].
Value
);
}
}
m
=
m
.
NextMatch
();
}
var
d
=
new
Dictionary
<
string
,
object
>
{
...
...
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