diff --git a/app/Http/Controllers/Dashboard/CrudController.php b/app/Http/Controllers/Dashboard/CrudController.php
index b0c7255a5..e27fe26bd 100755
--- a/app/Http/Controllers/Dashboard/CrudController.php
+++ b/app/Http/Controllers/Dashboard/CrudController.php
@@ -119,7 +119,9 @@ public function crudPost( String $namespace, CrudPostRequest $request )
* sanitizing input to remove
* all script tags
*/
- $entry->$name = preg_replace( '##is', '', $entry->$name );
+ if ( ! empty( $entry->$name ) ) {
+ $entry->$name = preg_replace( '##is', null, $entry->$name );
+ }
}
/**
@@ -240,7 +242,9 @@ public function crudPut( String $namespace, $id, CrudPutRequest $request )
* sanitizing input to remove
* all script tags
*/
- $entry->$name = preg_replace( '##is', '', $entry->$name );
+ if ( ! empty( $entry->$name ) ) {
+ $entry->$name = preg_replace( '##is', null, $entry->$name );
+ }
}
/**
diff --git a/storage/app/public/index.html b/storage/app/public/index.html
old mode 100644
new mode 100755
diff --git a/tests/Feature/OrderRefundTest.php b/tests/Feature/OrderRefundTest.php
index db8c5f3fb..67a794e01 100755
--- a/tests/Feature/OrderRefundTest.php
+++ b/tests/Feature/OrderRefundTest.php
@@ -21,7 +21,7 @@ class OrderRefundTest extends TestCase
*
* @return void
*/
- public function testExample()
+ public function testRefund()
{
Sanctum::actingAs(
Role::namespace( 'admin' )->users->first(),