mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Fixed the root path escaping issue for Radarr too!
This commit is contained in:
parent
2b8a5c6423
commit
717b499874
2 changed files with 6 additions and 4 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
rootFolder = Model.RootPath.Replace("/", "//");
|
rootFolder = Model.RootPath.Replace("/", "//");
|
||||||
|
rootFolder = rootFolder.Replace(@"\", @"\\");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
<div class="col-sm-8 col-sm-push-1">
|
<div class="col-sm-8 col-sm-push-1">
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
{
|
{
|
||||||
title = customName;
|
title = customName;
|
||||||
}
|
}
|
||||||
|
var isAdmin = Html.IsAdmin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,11 +42,11 @@
|
||||||
@Html.GetNavbarUrl(Context, "/search", UI.Layout_Search, "search")
|
@Html.GetNavbarUrl(Context, "/search", UI.Layout_Search, "search")
|
||||||
@Html.GetNavbarUrl(Context, "/requests", UI.Layout_Requests, "plus-circle")
|
@Html.GetNavbarUrl(Context, "/requests", UI.Layout_Requests, "plus-circle")
|
||||||
@Html.GetNavbarUrl(Context, "/issues", UI.Layout_Issues, "exclamation", "<span id=\"issueCount\"></span>")
|
@Html.GetNavbarUrl(Context, "/issues", UI.Layout_Issues, "exclamation", "<span id=\"issueCount\"></span>")
|
||||||
@if (Html.IsAdmin())
|
@if (isAdmin)
|
||||||
{
|
{
|
||||||
@Html.GetNavbarUrl(Context, "/usermanagement", UI.Layout_Usermanagement, "users")
|
@Html.GetNavbarUrl(Context, "/usermanagement", UI.Layout_Usermanagement, "users")
|
||||||
}
|
}
|
||||||
@if (Html.IsAdmin())
|
@if (isAdmin)
|
||||||
{
|
{
|
||||||
<li><a id="donate" href="https://www.paypal.me/PlexRequestsNet" target="_blank"><i class="fa fa-heart" style="color: red"></i> @UI.Layout_Donate</a></li>
|
<li><a id="donate" href="https://www.paypal.me/PlexRequestsNet" target="_blank"><i class="fa fa-heart" style="color: red"></i> @UI.Layout_Donate</a></li>
|
||||||
}
|
}
|
||||||
|
@ -55,7 +56,7 @@
|
||||||
<a id="gravatarImg" class="navbar-brand" href="#">
|
<a id="gravatarImg" class="navbar-brand" href="#">
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
@if (Html.IsAdmin())
|
@if (isAdmin)
|
||||||
{
|
{
|
||||||
<li><a>@UI.Layout_Welcome @Context.CurrentUser.UserName</a></li>
|
<li><a>@UI.Layout_Welcome @Context.CurrentUser.UserName</a></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
|
@ -121,7 +122,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var base = '@Html.GetBaseUrl()';
|
var base = '@baseUrl';
|
||||||
var url = createBaseUrl(base, '/customDonation');
|
var url = createBaseUrl(base, '/customDonation');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue