Channel #qw-dev: IRC: #qw-dev on Quakenet

root / trunk / httpsv.c

View | Annotate | Download (11.9 KB)

# Date Author Comment
156 08/08/2008 16:30 Cokeman

- Added qtv_reconnect_delay, qtv_backoff and qtv_max_reconnect_delay that allows you to decide if reconnect attempts to QTV sources should be done by "backing off" by qtv_reconnect_delay on each reconnect attempt until the qtv_max_reconnect_delay is reached, default is 30 seconds and 24 hours.

154 04/08/2008 02:11 qqshka

1) Some minor security issue was fixed.
2) Changed FS_OpenFile() behavior, if gamedir is NULL then open file as is = do not search it in qw or id1, well, absolute paths are prohibited.
3) Renamed Sys_SafePath to FS_SafePath and Sys_FileExtension to FS_FileExtension and moved to fs.c file....

153 03/08/2008 22:47 Cokeman

BUGFIX of BUGFIX: No! definantly don't unescape ALL urls ALL the time, we should only do this in specific places... Otherwise there would be no point in escaping stuff. Only do it for demo names when streaming/downloading in this case. Johnny_cz's previous fix broke the "watch now" button.

152 02/08/2008 23:01 johnnycz

bugfix: couldn't download demos with names containing [ and ] e.g. in firefox

151 01/08/2008 10:53 Cokeman

Should be aryan enough for gcc now...

149 01/08/2008 10:38 Cokeman

Lets see if this makes gcc shutup... http://qw-dev.net/issues/show/160

141 28/07/2008 19:35 johnnycz

send proper http headers for errorneous pages

137 26/07/2008 00:53 d3urk

Open HELP link in new window/tab

136 26/07/2008 00:35 d3urk

Added HELP link to QTV Wiki

122 10/07/2008 22:59 Cokeman

- Removed my retarded strstrrev and replaced it with strendswith (since that's what it did in a broken way anyway :P).
- Moved strchrrev to sys.c from source.c
- Fixed some warnings

121 10/07/2008 22:26 Cokeman

BUGFIX: strstrrev seems to cause segmentation fault on 64-bit linux, need to investigate :p Using Sys_Filextension to find out if a png is requested.

120 10/07/2008 13:28 Cokeman

- Added HTTPSV_GetURLFromRequest which extracts the url from a GET/POST request. We use this instead of poking around directly in the request buffer now.
- Made the GetMethod function less "copy and paste". Also made a generic solution for serving images instead of having one case for each image, this way you can refer to any image name in your css, not only hard coded ones.

117 09/07/2008 21:14 Cokeman

- BUGFIX: Replaced Spikes url unescape code which had a bug in it that caused "tut%5Bbla%5Dtut" to become "tut[Bbla]Dtut" instead of "tut[bla]tut". Placed this in a separate function instead HTTPSV_UnescapeURL.
- Added HTTPSV_UnescapeURL that unescapes urls using sscanf....

96 19/06/2008 21:45 Cokeman

BUGFIX: Fixed HTMLprintf so that it first converts from quakechars to normal chars before escaping html chars.

92 19/06/2008 11:58 Cokeman

- Started splitting up the huuuge SV_ReadPendingProxy()
- Let HTTPSV_PostMethod find out where the postdata is on itself (before it was passed as an argument). This is how HTTPSV_GetMethod works, so lets make it more consistent :)
- Fixed a spelling error "Downoload" => "Download" :P

91 18/06/2008 16:39 Cokeman

- Made HTTPSV_GetHeaderField non-destructive. (Only used twice currently, but if we want to be able to get more than 1 header this is needed).
-Renamed HTTPSV_GenerateHTMLBackGroundImg to HTTPSV_GenerateImage, since that better describes what it does :)

89 18/06/2008 15:25 Cokeman

Cleaned some code + got rid of copy/paste stuff.

84 17/06/2008 16:39 Cokeman

Added a rss <link> element and made /rss not just /rss/ work also :)

81 17/06/2008 08:25 Cokeman

Added RSS support. Needs some testing :) .. Url /rss

79 15/06/2008 13:08 qqshka

sprintf -> snprintf, but it was safe IMO

78 15/06/2008 13:02 qqshka

BUGFIX: thx Oscar Linderholm aka slime.
Still HTTPSV_GetHeaderField() suck.

69 26/03/2008 18:09 johnnycz

design for the Demos page, template by bps

52 26/02/2008 18:41 qqshka

nothing fancy, just add http://ip:port/status url to web interface, just willing to know uptime of qtv.

49 02/01/2008 14:54 qqshka

1) bugfix for HTMLprintf
2) use HTMLprintf for demolist, this allow & < > symbols in demo names. I hope.

46 02/01/2008 02:15 qqshka

you can download demos from /demos/ section of web interface.

44 02/01/2008 00:30 qqshka

well, not levelshots files may have any size, same with qtvbg01.png.

26 19/12/2007 11:44 d3urk

Added version number and changed (stupid) build number to be day based.

22 19/12/2007 09:42 d3urk

Local images patch submitted by Johnny_Cz, fixes #93 and fixes #6.

21 18/12/2007 15:02 d3urk

XHTML patch by Johnny_Cz for Zalon's request.
Closes #87.

20 30/11/2007 21:36 d3urk

We said... QTV! Not liking it? Who CARES?!

1 24/10/2007 14:25 d3urk

Initial commit