Commit 469516a9 authored by Marc Egger's avatar Marc Egger
Browse files

Tablesorter: fix encoding error

parent a7eb45b1
Pipeline #4057 failed with stages
in 4 minutes and 30 seconds
......@@ -1998,7 +1998,7 @@ class QuickFormQuery {
// The $view is base64 encoded. javascript base64 Alphabet: "A-Z", "a-z", "0-9", "+", "/" and "="
$view = Store::getVar(SETTING_TABLESORTER_VIEW, STORE_CLIENT, SANITIZE_ALLOW_ALLBUT);
if (preg_match("#^[A-Za-z0-9+/=]*$#", $view)) {
if (!preg_match("#^[A-Za-z0-9+/=]*$#", $view)) {
throw new \UserReportException("Encoding error of table data. This should not happen. Please contact support.", ERROR_TABLESORTER_INVALID_CHAR);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment