X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/effc03e99e8a455932884dccf1195287f87d09a3..refs/pull/5488/head:/app/App/helpers.php diff --git a/app/App/helpers.php b/app/App/helpers.php index af6dbcfc3..204b3f06a 100644 --- a/app/App/helpers.php +++ b/app/App/helpers.php @@ -1,6 +1,7 @@ $value) { - $trimmedVal = trim($value); - if ($trimmedVal === '') { - continue; - } - $queryStringSections[] = urlencode($name) . '=' . urlencode($trimmedVal); - } - - if (count($queryStringSections) === 0) { - return url($path); - } - - return url($path . '?' . implode('&', $queryStringSections)); -}