Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2a496ad8

Von Moritz Bunkus vor mehr als 4 Jahren hinzugefügt

  • ID 2a496ad85e9117b7cfaaa315b208f478eba30ffd
  • Vorgänger 108753a7
  • Nachfolger da1f7513

Auth: fehlerhafte JSON-Requests mit JSON und richtigem HTTP-Response-Code beantworten

Unterschiede anzeigen:

SL/Auth.pm
1237 1237
  }
1238 1238

  
1239 1239
  if (!$dont_abort) {
1240
    $::dispatcher->reply_with_json_error(error => 'access') if $::request->type eq 'json';
1241

  
1240 1242
    delete $::form->{title};
1241 1243
    $::form->show_generic_error($::locale->text("You do not have the permissions to access this function."));
1242 1244
  }

Auch abrufbar als: Unified diff