Skip to content

Commit 6133547

Browse files
Fix Possibility for Denial of Service by overwriting PHP files with language exports in barryvdh/laravel-translation-manager
1 parent d62bf49 commit 6133547

File tree

1 file changed

+1
-1
lines changed
  • overrides/barryvdh/laravel-translation-manager/src

1 file changed

+1
-1
lines changed

overrides/barryvdh/laravel-translation-manager/src/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ public function getLocales()
672672

673673
public function addLocale($locale)
674674
{
675-
$localeDir = $this->app->langPath().'/'.$locale;
675+
$localeDir = $this->app->langPath().'/'.basename($locale);
676676

677677
$this->ignoreLocales = array_diff($this->ignoreLocales, [$locale]);
678678
$this->saveIgnoredLocales();

0 commit comments

Comments
 (0)