mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 23:56:05 +02:00
Fixed opening workspace paths containing '/../' or '/./'
This commit is contained in:
parent
8328e646bd
commit
c2ee401812
6 changed files with 50 additions and 10 deletions
|
@ -7,6 +7,7 @@ using System.Security.Cryptography;
|
|||
|
||||
namespace IDE
|
||||
{
|
||||
[AllowDuplicates]
|
||||
public enum LineEndingKind
|
||||
{
|
||||
Lf, // \n
|
||||
|
|
|
@ -804,6 +804,9 @@ namespace IDE
|
|||
#if !CLI
|
||||
if (mDeferredOpenFileName != null)
|
||||
{
|
||||
String prevFilePath = scope .(mDeferredOpenFileName);
|
||||
mDeferredOpenFileName.Clear();
|
||||
Path.GetActualPathName(prevFilePath, mDeferredOpenFileName);
|
||||
OpenWorkspace(mDeferredOpenFileName);
|
||||
DeleteAndNullify!(mDeferredOpenFileName);
|
||||
return;
|
||||
|
|
|
@ -36,6 +36,7 @@ namespace IDE.ui
|
|||
|
||||
public class MemoryRepListView : DarkListView
|
||||
{
|
||||
[AllowDuplicates]
|
||||
public enum RepType
|
||||
{
|
||||
// integer types (dual signed/unsigned reps)
|
||||
|
|
|
@ -14,6 +14,7 @@ namespace CURL
|
|||
const int32 cOptionFunction = 20000;
|
||||
const int32 cOptionOffT = 30000;
|
||||
|
||||
[AllowDuplicates]
|
||||
public enum Option
|
||||
{
|
||||
/* This is the FILE * or void * the regular output should be written to. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue