0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-06 17:20:07 +00:00

Increased attachment link limit from 192 to 2k

Added test to cover.
Did attempt a 64k limit, but values over 2k significantly increase
chance of other issues since this URL may be used in redirect headers.
Would rather catch issues in-app.

For 
This commit is contained in:
Dan Brown 2023-02-20 13:05:23 +00:00
parent 8da3e64039
commit c80396136f
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
6 changed files with 71 additions and 26 deletions

View file

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('attachments', function (Blueprint $table) {
$table->text('path')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('attachments', function (Blueprint $table) {
$table->string('path')->change();
});
}
};