Skip to content

Commit

Permalink
fixed null value return for php8
Browse files Browse the repository at this point in the history
  • Loading branch information
apefrei committed Dec 8, 2023
1 parent 0a3371b commit e2c540f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
FROM php:apache

#COPY entrypoint.sh ./

#Start an enable SSH
RUN apt-get update \
&& apt-get -y install python3-pkg-resources python3 \
# && apt-get install -y --no-install-recommends dialog gunicorn3 \
# && apt-get install -y --no-install-recommends openssh-server \
#XKCD
&& apt-get -y install xkcdpass
# && echo "root:Docker!" | chpasswd \
# && chmod u+x ./entrypoint.sh

#COPY sshd_config /etc/ssh/
COPY index.php /var/www/html/

#EXPOSE 80 8000 2222
EXPOSE 80

#ENTRYPOINT [ "./entrypoint.sh" ]
EXPOSE 80
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$lang = htmlspecialchars($_GET["lang"]);
$lang = htmlspecialchars($_GET["lang"] ?? false);
$dict = "";
$listNonAlpha = ",;:!?$/*-_+&@";

Expand Down

0 comments on commit e2c540f

Please sign in to comment.