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
aa32368d
authored
Apr 03, 2018
by
Urvil Shah
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add the guard.
parent
65445ce5
Pipeline
#7264
passed with stages
in 22 minutes 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
Mobile.Search.Web/Controllers/TemplateController.cs
Mobile.Search.Web/Controllers/TemplateController.cs
View file @
aa32368d
...
@@ -158,10 +158,14 @@ namespace Mobile.Search.Web.Controllers
...
@@ -158,10 +158,14 @@ namespace Mobile.Search.Web.Controllers
TimeSpan
.
FromSeconds
(
1
));
TimeSpan
.
FromSeconds
(
1
));
while
(
m
.
Success
)
while
(
m
.
Success
)
{
{
string
to_replace
=
String
.
Format
(
"{{{{WrapUrl('{0}')}}}}"
,
m
.
Groups
[
1
]);
if
(!
m
.
Value
.
Contains
(
"WrapUrl"
))
value
=
value
.
Replace
(
m
.
Groups
[
1
].
Value
,
to_replace
);
{
string
to_replace
=
String
.
Format
(
"{{{{WrapUrl('{0}')}}}}"
,
m
.
Groups
[
1
]);
value
=
value
.
Replace
(
m
.
Groups
[
1
].
Value
,
to_replace
);
}
m
=
m
.
NextMatch
();
m
=
m
.
NextMatch
();
}
}
var
d
=
new
Dictionary
<
string
,
object
>
var
d
=
new
Dictionary
<
string
,
object
>
{
{
{
"templateKey"
,
key
.
ToLower
()},
{
"templateKey"
,
key
.
ToLower
()},
...
...
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