Skip to content

Commit 57b10f1

Browse files
committed
Merge branch 'development' into release
2 parents b1e95eb + 3a8a476 commit 57b10f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+321
-250
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Discord chat support
3+
- name: Discord Chat Support
44
url: https://discord.gg/ztkBqR2
5-
about: Realtime support / chat with the community and the team.
5+
about: Realtime support & chat with the BookStack community and the team.
66

77
- name: Debugging & Common Issues
88
url: https://www.bookstackapp.com/docs/admin/debugging/
9-
about: Find details on how to debug issues and view common issues with thier resolutions.
9+
about: Find details on how to debug issues and view common issues with their resolutions.
10+
11+
- name: Official Support Plans
12+
url: https://www.bookstackapp.com/support/
13+
about: View our official support plans that offer assured support for business.

.github/translators.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,4 @@ sgenc :: Turkish
242242
Shukrullo (vodiylik) :: Uzbek
243243
William W. (Nevnt) :: Chinese Traditional
244244
eamaro :: Portuguese
245+
Ypsilon-dev :: Arabic

app/Entities/Tools/SearchRunner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ protected function applyTagSearch(EloquentBuilder $query, string $tagTerm): Eloq
360360
/** @var Connection $connection */
361361
$connection = $query->getConnection();
362362
$tagValue = (float) trim($connection->getPdo()->quote($tagValue), "'");
363-
$query->whereRaw("value ${tagOperator} ${tagValue}");
363+
$query->whereRaw("value {$tagOperator} {$tagValue}");
364364
} else {
365365
$query->where('value', $tagOperator, $tagValue);
366366
}

app/Exceptions/JsonDebugException.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@ public function __construct(array $data)
1919
}
2020

2121
/**
22-
* Covert this exception into a response.
22+
* Convert this exception into a response.
23+
* We add a manual data conversion to UTF8 to ensure any binary data is presentable as a JSON string.
2324
*/
2425
public function render(): JsonResponse
2526
{
26-
return response()->json($this->data);
27+
$cleaned = mb_convert_encoding($this->data, 'UTF-8');
28+
29+
return response()->json($cleaned);
2730
}
2831
}

app/Http/Controllers/Controller.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,11 @@ protected function downloadResponse(string $content, string $fileName): Response
127127
protected function streamedDownloadResponse($stream, string $fileName): StreamedResponse
128128
{
129129
return response()->stream(function () use ($stream) {
130-
// End & flush the output buffer otherwise we still seem to use memory.
130+
131+
// End & flush the output buffer, if we're in one, otherwise we still use memory.
132+
// Output buffer may or may not exist depending on PHP `output_buffering` setting.
131133
// Ignore in testing since output buffers are used to gather a response.
132-
if (!app()->runningUnitTests()) {
134+
if (!empty(ob_get_status()) && !app()->runningUnitTests()) {
133135
ob_end_clean();
134136
}
135137

app/Http/Controllers/SettingController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function update(Request $request, string $category)
8383
$this->logActivity(ActivityType::SETTINGS_UPDATE, $category);
8484
$this->showSuccessNotification(trans('settings.settings_save_success'));
8585

86-
return redirect("/settings/${category}");
86+
return redirect("/settings/{$category}");
8787
}
8888

8989
protected function ensureCategoryExists(string $category): void

app/Http/Middleware/Localization.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Localization
1111
/**
1212
* Array of right-to-left locales.
1313
*/
14-
protected $rtlLocales = ['ar', 'he'];
14+
protected $rtlLocales = ['ar', 'fa', 'he'];
1515

1616
/**
1717
* Map of BookStack locale names to best-estimate system locale names.
@@ -30,6 +30,7 @@ class Localization
3030
'es_AR' => 'es_AR',
3131
'et' => 'et_EE',
3232
'eu' => 'eu_ES',
33+
'fa' => 'fa_IR',
3334
'fr' => 'fr_FR',
3435
'he' => 'he_IL',
3536
'hr' => 'hr_HR',

composer.lock

Lines changed: 53 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)