Skip to content

Commit

Permalink
extraneous dot dot detection in path research (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzgab committed Mar 23, 2020
1 parent 883b52f commit 2d0fa0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
vendor/

6 changes: 0 additions & 6 deletions src/figdice/View.php
Expand Up @@ -818,12 +818,6 @@ public function fetchData($name) {
return $this->callStackData[count($this->callStackData) - 1];
}
if($name == '..') {
//If there is no parent to the current context,
//stop searching.
if(count($this->callStackData) - 2 < 0) {
return null;
}

return $this->callStackData[count($this->callStackData) - 2];
}

Expand Down

0 comments on commit 2d0fa0f

Please sign in to comment.