X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=actions%2Fedit_course.sh;h=1841e056b00ffc5038b9c4751bf041dfb4edc1d5;hp=2b825619d494b8b6f75c4faff2ce28d7f51ea06f;hb=322d57cdb814fe095dec3bb579e0aaa9db94e9c2;hpb=1e8f35fa92c610b540cbe365e2231194b58e0cc0 diff --git a/actions/edit_course.sh b/actions/edit_course.sh old mode 100644 new mode 100755 index 2b82561..1841e05 --- a/actions/edit_course.sh +++ b/actions/edit_course.sh @@ -17,6 +17,6 @@ # You should have received a copy of the GNU Affero General Public License # along with Confetti. If not, see . -course="$_GET[\"course\"]" +course="${_GET[course]}" -echo -n "Location: http://$HTTP_HOST/?page=courses&edit=$course\n\n" +echo -n "Location: ?p=courses&edit=$course\n\n"