Commit Graph

22 Commits

Author SHA1 Message Date
fiwswe 6c16a3a9aa Use str_starts_with/str_ends_with 2023-09-14 23:06:43 +02:00
Andreas Gohr d4f83172d9 code style: line breaks 2023-08-31 22:44:40 +02:00
Andreas Gohr 26dfc2323f Rector to rename print to echo calls 2023-08-31 22:00:27 +02:00
Andreas Gohr 24870174d2 Apply rector fixes to the rest of inc 2023-08-29 19:42:15 +02:00
Andreas Gohr 2b9be4565f some more fixes for undefined vars
This makes more use of $INPUT to access $_SERVER and fixes a warning in
one of the search methods.
2022-11-10 11:52:58 +01:00
Andreas Gohr 13c3790029 streamline zlib checking #1410
Instead of having various function_exists checks all over the place,
this introduces the constants DOKU_HAS_GZIP and DOKU_HAS_BZIP. All
non-3rdparty parts of the code using gz* functions should now check if
zlib is actually available.
2015-11-27 09:29:01 +01:00
Andreas Gohr 4a0b76690b make sure zlib exists when trying to use gzip_output #1410 2015-11-27 09:00:22 +01:00
Gerrit Uitslag 42ea7f447f Many PHPDocs, some unused and dyn declared vars
many PHPDocs
some unused variables
some dynamically declared variables declared
2014-10-01 11:30:27 +02:00
Christopher Smith f327a5f0a9 Merge branch 'master' into FS#2388 2014-03-02 21:00:08 +00:00
Gerrit Uitslag 901248028b fix httputils PHPDocs 2014-02-17 19:22:57 +01:00
Dominik Eckelmann 446b5b5934 FS#2388 give relative path to sendfile on nginx 2014-02-15 10:59:18 +01:00
Dominik Eckelmann 40e0b44409 use http_sendfile correct 2014-02-15 10:58:33 +01:00
Christopher Smith b051e97427 code changes in the rest of the code base to support testing fetch 2013-03-22 17:55:19 +00:00
Andreas Gohr 9d2e1be699 introduced http_status() for sending HTTP status code FS#1698
It seems, some servers require a special Status: header for sending the
HTTP status code from PHP (F)CGI to the server. This patch introduces a
new function (adopted from CodeIgniter) for simplifying the status
handling.
2013-02-16 18:29:20 +01:00
Michael Hamann 93b2e67758 Declare timestamp parameter of http_conditionalRequest as int 2012-08-24 16:50:07 +02:00
Dominik Eckelmann 96946cc94d replaced $HTTP_RAW_POST_DATA with http_get_raw_post_data function 2012-03-21 11:25:00 +01:00
Adrian Lang 6619f42eb4 Refactor CSS and JS caching
* Increase HTTP cache time since the resources are timestamped on request
    anyway
  * Check userscript.js only once for JS cache validation
  * Use cache class
2011-07-02 23:10:26 +02:00
Elan Ruusamäe 23a96c41bf - update urls 2010-10-07 21:02:29 +03:00
Adrian Lang c66972f2cb Emit less E_NOTICEs and E_STRICTs
Changes of behaviour are:
  * Allow the user name, title & description \e2\80\9c0\e2\80\9d
  * Default to Port 443 if using HTTPS
  * Set $INFO['isadmin'] and $INFO['ismanager'] to \e2\80\9cfalse\e2\80\9d even if no user is
    logged in
  * Do not pass empty fragment field in the event data for event
    ACTION_SHOW_REDIRECT
  * Handle chunked encoding in HTTPClient

darcs-hash:20091104100115-e4919-5cf6397d4a457e3f98a8ca49fbdab03f2147721d.gz
2009-11-04 11:01:15 +01:00
Andreas Gohr db959ae307 Coding Standard Cleanup
Ignore-this: 259cb5773c3144c6c706d87298dcf674

darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
2009-10-20 23:23:38 +02:00
Andreas Gohr b8b5563eb5 fixed headers in multipart HTTP replies FS#1630
Ignore-this: 5bd12feffff1224e4cb3e1acf7fa86a0

darcs-hash:20090316191939-7ad00-0e3754648db6932ef2e0d7eec4668f50bdc85b87.gz
2009-03-16 20:19:39 +01:00
Andreas Gohr 758447cfa4 Support for multirange requests for media FS#1630
Ignore-this: 50de569608231b910a62327d2f3af1de

This patch moves all HTTP sending related functions to inc/httputils.php

Handling of range requests was rewritten completely to support mutirange
requests. This should fix problems with Adobe Reader but needs testing.

darcs-hash:20090313190247-7ad00-e6ec1f81acb9f7ac651357dd034c2689aea6868d.gz
2009-03-13 20:02:47 +01:00