1
0
Fork 0
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:
Brian Fiete 2019-12-26 07:03:35 -08:00
parent 8328e646bd
commit c2ee401812
6 changed files with 50 additions and 10 deletions

View file

@ -7,6 +7,7 @@ using System.Security.Cryptography;
namespace IDE
{
[AllowDuplicates]
public enum LineEndingKind
{
Lf, // \n

View file

@ -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;

View file

@ -36,6 +36,7 @@ namespace IDE.ui
public class MemoryRepListView : DarkListView
{
[AllowDuplicates]
public enum RepType
{
// integer types (dual signed/unsigned reps)

View file

@ -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. */