mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-10 22:20:46 +00:00
commit
2ecba8e144
11 changed files with 40 additions and 21 deletions
3
SECURITY.md
Normal file
3
SECURITY.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
If you discover any security related issues, please email hello@pixelfed.org instead of using the issue tracker.
|
|
@ -65,7 +65,6 @@ class ImportCities extends Command
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
ini_set('memory_limit', '256M');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75,6 +74,8 @@ class ImportCities extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
$old_memory_limit = ini_get('memory_limit');
|
||||||
|
ini_set('memory_limit', '256M');
|
||||||
$path = storage_path('app/cities.json');
|
$path = storage_path('app/cities.json');
|
||||||
|
|
||||||
if(hash_file('sha512', $path) !== self::CHECKSUM) {
|
if(hash_file('sha512', $path) !== self::CHECKSUM) {
|
||||||
|
@ -136,6 +137,7 @@ class ImportCities extends Command
|
||||||
$this->line('');
|
$this->line('');
|
||||||
$this->info('Successfully imported ' . $cityCount . ' entries!');
|
$this->info('Successfully imported ' . $cityCount . ' entries!');
|
||||||
$this->line('');
|
$this->line('');
|
||||||
|
ini_set('memory_limit', $old_memory_limit);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ class RegisterController extends Controller
|
||||||
return $fail('Username is invalid. Can only contain one dash (-), period (.) or underscore (_).');
|
return $fail('Username is invalid. Can only contain one dash (-), period (.) or underscore (_).');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ctype_alpha($value[0])) {
|
if (!ctype_alnum($value[0])) {
|
||||||
return $fail('Username is invalid. Must start with a letter or number.');
|
return $fail('Username is invalid. Must start with a letter or number.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- app-storage:/var/www/storage
|
- app-storage:/var/www/storage
|
||||||
- app-bootstrap:/var/www/bootstrap
|
- app-bootstrap:/var/www/bootstrap
|
||||||
|
- "./.env.docker:/var/www/.env"
|
||||||
networks:
|
networks:
|
||||||
- external
|
- external
|
||||||
- internal
|
- internal
|
||||||
|
|
Binary file not shown.
|
@ -321,7 +321,7 @@
|
||||||
<a href="/site/terms" class="text-lighter pr-2">Terms</a>
|
<a href="/site/terms" class="text-lighter pr-2">Terms</a>
|
||||||
</p>
|
</p>
|
||||||
<p class="mb-0 text-uppercase text-muted small">
|
<p class="mb-0 text-uppercase text-muted small">
|
||||||
<a href="http://pixelfed.org" class="text-lighter" rel="noopener" title="" data-toggle="tooltip">Powered by Pixelfed</a>
|
<a href="https://pixelfed.org" class="text-lighter" rel="noopener" title="" data-toggle="tooltip">Powered by Pixelfed</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
11
resources/lang/cs/exception.php
Normal file
11
resources/lang/cs/exception.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
return [
|
||||||
|
|
||||||
|
'compose' => [
|
||||||
|
'invalid' => [
|
||||||
|
'album' => 'Musí obsahovat samostatnou fotografii, video nebo více fotografií.',
|
||||||
|
],
|
||||||
|
],
|
||||||
|
|
||||||
|
];
|
|
@ -23,4 +23,6 @@ return [
|
||||||
'reportSomething' => 'Nahlašování',
|
'reportSomething' => 'Nahlašování',
|
||||||
'dataPolicy' => 'Politika dat'
|
'dataPolicy' => 'Politika dat'
|
||||||
|
|
||||||
|
'taggingPeople' => 'Označování lidí'
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'search' => 'Hledat',
|
'search' => 'Hledat',
|
||||||
'home' => 'Domů',
|
'home' => 'Domů',
|
||||||
'local' => 'Místní',
|
'local' => 'Místní',
|
||||||
'network' => 'Síť',
|
'network' => 'Síť',
|
||||||
'discover' => 'Objevovat',
|
'discover' => 'Objevovat',
|
||||||
'viewMyProfile' => 'Zobrazit můj profil',
|
'viewMyProfile' => 'Zobrazit můj profil',
|
||||||
|
'myProfile' => 'Můj profil',
|
||||||
'myTimeline' => 'Moje časová osa',
|
'myTimeline' => 'Moje časová osa',
|
||||||
'publicTimeline' => 'Veřejná časová osa',
|
'publicTimeline' => 'Veřejná časová osa',
|
||||||
'remoteFollow' => 'Vzdálené sledování',
|
'remoteFollow' => 'Vzdálené sledování',
|
||||||
|
@ -15,5 +15,5 @@ return [
|
||||||
'admin' => 'Administrace',
|
'admin' => 'Administrace',
|
||||||
'logout' => 'Odhlásit',
|
'logout' => 'Odhlásit',
|
||||||
'directMessages' => 'Přímé zprávy',
|
'directMessages' => 'Přímé zprávy',
|
||||||
|
'composePost' => 'Vytvořit příspěvek',
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'about' => 'O nás',
|
'about' => 'O nás',
|
||||||
'help' => 'Nápověda',
|
'help' => 'Nápověda',
|
||||||
'language' => 'Jazyk',
|
'language' => 'Jazyk',
|
||||||
'fediverse' => 'Fedivesmír',
|
'fediverse' => 'Fedivesmír',
|
||||||
'opensource' => 'Otevřený zdroj',
|
'opensource' => 'Otevřený zdroj',
|
||||||
'terms' => 'Podmínky',
|
'terms' => 'Podmínky',
|
||||||
'privacy' => 'Soukromí',
|
'privacy' => 'Soukromí',
|
||||||
'l10nWip' => 'Stále pracujeme na podpoře lokalizací',
|
'l10nWip' => 'Stále pracujeme na podpoře lokalizací',
|
||||||
'currentLocale' => 'Aktuální jazyk',
|
'currentLocale' => 'Aktuální jazyk',
|
||||||
'selectLocale' => 'Vyberte si jeden z podporovaných jazyků',
|
'selectLocale' => 'Vyberte si jeden z podporovaných jazyků',
|
||||||
'contact' => 'Kontakt',
|
'contact' => 'Kontakt',
|
||||||
'contact-us' => 'Kontaktujte nás',
|
'contact-us' => 'Kontaktujte nás',
|
||||||
'places' => 'Místa',
|
'places' => 'Místa',
|
||||||
'profiles' => 'Profily',
|
'profiles' => 'Profily',
|
||||||
];
|
];
|
||||||
|
|
|
@ -116,7 +116,7 @@
|
||||||
@endif
|
@endif
|
||||||
<div class="form-group row mb-0">
|
<div class="form-group row mb-0">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<button type="submit" class="btn btn-primary btn-block py-0 font-weight-bold text-uppercase">
|
<button type="submit" class="btn btn-primary btn-block btn-lg font-weight-bold text-uppercase">
|
||||||
{{ __('Login') }}
|
{{ __('Login') }}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card shadow-none border card-body">
|
<div class="card shadow-none border card-body">
|
||||||
<p class="text-center mb-0 font-weight-bold small">
|
<p class="text-center mb-0 font-weight-bold">
|
||||||
@if(config_cache('pixelfed.open_registration'))
|
@if(config_cache('pixelfed.open_registration'))
|
||||||
<a href="/register">Register</a>
|
<a href="/register">Register</a>
|
||||||
<span class="px-1">·</span>
|
<span class="px-1">·</span>
|
||||||
|
|
Loading…
Reference in a new issue