Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsCleanPathAbsolute()

static bool Microsoft.Xna.Framework.TitleContainer.IsCleanPathAbsolute ( string path)
inlinestaticprivate

Definition at line 95 of file TitleContainer.cs.

96 {
97 if (path.IndexOfAny(badCharacters) >= 0)
98 {
99 return true;
100 }
101 if (path.StartsWith("\\"))
102 {
103 return true;
104 }
105 if (path.StartsWith("..\\") || path.Contains("\\..\\") || path.EndsWith("\\..") || path == "..")
106 {
107 return true;
108 }
109 return false;
110 }

References Microsoft.Xna.Framework.TitleContainer.badCharacters.

Referenced by Microsoft.Xna.Framework.TitleContainer.IsPathAbsolute(), and Microsoft.Xna.Framework.TitleContainer.OpenStream().