ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

php source code is readable from web #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. go to http://127.0.0.1/index.php
2. i CAN NOT read the php source code BUT ..
3. go to http://127.0.0.1/index.php/?
4. and i CAN read the php source code

What is the expected output? What do you see instead?
it should not display the source code, but it does !

What version of the product are you using? On what operating system?
2.8 and i have testing 2.6 but i got same result

Please provide any additional information below.
here is my mongoose.conf ..
-- mongoose.conf --
ports       80
root        c:\mongoose\htdocs

index_files     index.php
cgi_ext         php
cgi_interp      php-cgi.exe
dir_list        no
-------------------

Original issue reported on code.google.com by cakyus on 18 Oct 2009 at 2:17

GoogleCodeExporter commented 9 years ago
sorry, i forgot to mention that i'm using windows xp home ed. :)

Original comment by cakyus on 18 Oct 2009 at 2:20

GoogleCodeExporter commented 9 years ago
Wow, this seems like a huge security hole.

Original comment by sha...@gmail.com on 27 Oct 2009 at 10:02

GoogleCodeExporter commented 9 years ago
i'm trying to help. i recently learn c in my college, i'm 100% newbie :). i 
downloaded the latest source code and tried to compile then i got this ..

||=== mongoose, Debug ===|
D:\Documents\projects\mongoose\mongoose.c|130|error: conflicting types for 
'pid_t'|
D:\Program 
Files\CodeBlocks\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include
\sys\types.h|75|error: previous declaration of 'pid_t' was here|
D:\Documents\projects\mongoose\mongoose.c||In function `mg_stat':|
D:\Documents\projects\mongoose\mongoose.c|1088|warning: integer constant is too 
large for "long" type|
||=== Build finished: 2 errors, 1 warnings ===|

i have tried to comment some lines and got another error.

Original comment by cakyus on 28 Oct 2009 at 12:16

GoogleCodeExporter commented 9 years ago
If you're a newbie, I suggest using UNIX.
There's plenty of free UNIX shells with compilers, please use one or install 
UNIX on 
your workstation, or use emulator like VirtualBox or QEMU to run UNIX.
LOTS of you problems will go away.

Original comment by valenok on 28 Oct 2009 at 1:03

GoogleCodeExporter commented 9 years ago

Original comment by valenok on 19 Sep 2010 at 9:13

GoogleCodeExporter commented 9 years ago
this issue still exist in latest devel-version 

Original comment by purwanti...@gmail.com on 23 Nov 2011 at 5:23