mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-29 03:15:51 +02:00
Fix bug with falsely detecting symlinks in plugins if a file/folder doesn't exist
This commit is contained in:
parent
fd523e552c
commit
c7279eaa34
@ -88,8 +88,8 @@ public string GetFullPathIfSafe(PluginFolder folder, string relativePath){
|
|||||||
DirectoryInfo parentInfo = currentInfo.Parent;
|
DirectoryInfo parentInfo = currentInfo.Parent;
|
||||||
|
|
||||||
while(parentInfo != null){
|
while(parentInfo != null){
|
||||||
if (currentInfo.Attributes.HasFlag(FileAttributes.ReparsePoint)){ // no reason why a plugin should have files/folders with symlinks, junctions, or any other crap
|
if (currentInfo.Exists && currentInfo.Attributes.HasFlag(FileAttributes.ReparsePoint)){
|
||||||
return string.Empty;
|
return string.Empty; // no reason why a plugin should have files/folders with symlinks, junctions, or any other crap
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parentInfo.FullName == folderPathName){
|
if (parentInfo.FullName == folderPathName){
|
||||||
|
Loading…
Reference in New Issue
Block a user