Sinisterly
[*FIXED*] Issue with in_array() [strange] - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: PHP (https://sinister.ly/Forum-PHP)
+--- Thread: [*FIXED*] Issue with in_array() [strange] (/Thread-FIXED-Issue-with-in-array-strange)

Pages: 1 2 3 4 5


RE: Issue with in_array() [strange] - hellomen - 10-28-2013

(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH FUCK!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG


RE: Issue with in_array() [strange] - hellomen - 10-28-2013

(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH FUCK!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG


RE: Issue with in_array() [strange] - hellomen - 10-28-2013

(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH FUCK!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG


RE: Issue with in_array() [strange] - hellomen - 10-28-2013

(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH FUCK!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG


RE: Issue with in_array() [strange] - hellomen - 10-28-2013

(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH FUCK!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG


RE: Issue with in_array() [strange] - 1llusion - 10-29-2013

(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestricted_File_Upload


RE: Issue with in_array() [strange] - 1llusion - 10-29-2013

(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestricted_File_Upload


RE: Issue with in_array() [strange] - 1llusion - 10-29-2013

(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestricted_File_Upload


RE: Issue with in_array() [strange] - 1llusion - 10-29-2013

(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestricted_File_Upload


RE: Issue with in_array() [strange] - 1llusion - 10-29-2013

(10-28-2013, 11:54 PM)hellomen Wrote:
(10-28-2013, 11:18 PM)1llusion Wrote: Ha! I found the error! You have a typo in one of the two variables Smile
Have a look yourself:
$extensions
$extentions - missing a S

AAAAH fudge!
thats why I don't really like PHP XD

you are my angel Smile

http://url4img.tk/

try it out with a JPG and a PNG

Your next step is looking into mime types and allowing / denying uploads depending on the mime type.
(Because you could have a serious vulnerability right now Tongue)
Have a look here: https://www.owasp.org/index.php/Unrestricted_File_Upload