Skip to content

Commit

Permalink
bug fixed: avoir redirection when calling the API
Browse files Browse the repository at this point in the history
  • Loading branch information
plegall committed Nov 26, 2021
1 parent 88abe6d commit e6e9025
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/events.inc.php
Expand Up @@ -155,7 +155,11 @@ function get_extended_desc($desc, $param='')
}
else
{
redirect($url);
// never redirect on the API. It might break pwg.categories.getAdminList, for example.
if (script_basename() != 'ws')
{
redirect($url);
}
}
}

Expand Down

0 comments on commit e6e9025

Please sign in to comment.