Commit a4f0bd8f authored by Carsten  Rose's avatar Carsten Rose
Browse files

Link.php: enhance error message for logged in be user on missing token.

parent 45d2c187
Pipeline #756 passed with stage
in 1 minute and 53 seconds
......@@ -536,7 +536,9 @@ class Link {
$tokenGiven[$key] = true;
if (!isset($this->tableVarName[$key])) {
throw new UserReportException ("Unknown link qualifier: '$key' - did you forget the one character qualifier?", ERROR_UNKNOWN_LINK_QUALIFIER);
$msg[ERROR_MESSAGE_TO_USER]="Unknown link qualifier: '$key' - did you forget the one character qualifier?";
$msg[ERROR_MESSAGE_SUPPORT]=$str;
throw new UserReportException (json_encode($msg), ERROR_UNKNOWN_LINK_QUALIFIER);
}
$keyName = $this->tableVarName[$key]; // convert token to name
......
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