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
cc5e7a15
authored
Apr 13, 2018
by
Urvil Shah
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add the guard on the wrapping content.
parent
28c35737
Pipeline
#7389
passed with stages
in 23 minutes 17 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
Mobile.Search.Web/Controllers/TemplateController.cs
Mobile.Search.Web/Controllers/TemplateController.cs
View file @
cc5e7a15
...
...
@@ -171,8 +171,12 @@ namespace Mobile.Search.Web.Controllers
{
to_replace
=
String
.
Format
(
"{{{{WrapAdvertiserUnsubscribeUrl('{0}')}}}}"
,
m
.
Groups
[
1
]);
}
if
(
m
.
Groups
[
1
].
Value
.
Count
()>
0
)
{
value
=
value
.
Replace
(
m
.
Groups
[
1
].
Value
,
to_replace
);
}
}
m
=
m
.
NextMatch
();
}
...
...
@@ -208,7 +212,8 @@ namespace Mobile.Search.Web.Controllers
catch
(
Exception
x
)
{
Log
.
Error
(
"Edit: Error "
+
x
);
return
View
();
return
Json
(
new
{
status
=
"Failed"
});
}
}
...
...
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