Commit graph

103 commits

Author SHA1 Message Date
Tim Starling
db41d9ae7c Parser improvements: global variable destruction 2004-02-29 08:43:29 +00:00
Tim Starling
634e1dc6c6 lost linestart 2004-02-28 02:09:41 +00:00
Tim Starling
ee73b49007 Split parser from OutputPage into Parser.php, corrected spelling of "suppress", a few other bits and pieces 2004-02-26 13:37:26 +00:00
Magnus Manske
61b139544e Category function now working 2004-02-24 14:20:21 +00:00
Magnus Manske
dbb89d2e6a Categories workover, incomplete 2004-02-24 12:01:43 +00:00
Jens Frank
7a4c57b0db Fix bug: Only first prefix link (aka Al[[Razi]]) was treated properly 2004-02-23 18:12:23 +00:00
Mr. E23
3c799396d6 Replaced uses of microtime() with wfTime() where possible. 2004-02-18 19:12:55 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Mr. E23
11e14cb131 Fix for parser cache; pages containing variables are now updated without delay when the variable is. 2004-02-15 17:02:58 +00:00
Jens Frank
c2a862264b allow "foo[[bar]]" to extend the link over the whole word "foobar" 2004-02-15 10:05:52 +00:00
Tim Starling
158e5ca759 Specia:Asksql security fix, Special:Asksql query timeout feature 2004-02-11 13:03:58 +00:00
Gabriel Wicke
08df14986e cleaned up unnecessary global declaration 2004-02-08 21:13:42 +00:00
Gabriel Wicke
d7a93a085a added function setSquidMaxage to adjust the Cache timeout for special pages 2004-02-08 21:12:07 +00:00
Arne Heizmann
c19d7a9ef1 Remove self-links and display their text in bold instead. 2004-02-08 21:02:41 +00:00
Magnus Manske
9714e01b94 hopefully fixing caption bug 892460 2004-02-08 13:05:28 +00:00
Tim Starling
7d46f933a9 removing commented sections 2004-02-08 08:01:54 +00:00
Tim Starling
6c9a30a345 Printable pages not cacheable, as suggested by... gwicke? 2004-02-04 00:45:48 +00:00
Gabriel Wicke
a017448eaf typo 2004-02-03 14:39:50 +00:00
Gabriel Wicke
a5d23772e2 added wgSquidMaxage global to configure the Squid cache timeout value from the config 2004-02-03 13:14:10 +00:00
Gabriel Wicke
943e0a1f95 minor fix 2004-02-02 04:33:48 +00:00
Brion Vibber
cded871bba Move sendCacheControl in checkLastMod to only go when we're chickening out on a 304 2004-02-02 04:10:46 +00:00
Gabriel Wicke
ef98e54686 Squid branch merge. Calls to purge functions in Article.php and special pages. 2004-02-02 01:40:03 +00:00
Gabriel Wicke
84679b35fb Initial support for Squid3 and ESI. Adds $wgUseESI and sends Surrogate-Control Header if enabled. No Cache-Control header stripping required on the Squid. 2004-01-31 12:45:09 +00:00
Brion Vibber
581415895d Some cleanup to header output; use a forced expires header again to force some older browsers (?); use private caching; separate out the local squid case from the general case 2004-01-31 10:29:31 +00:00
Gabriel Wicke
144cbe5bd6 Squid integration changes 2004-01-30 17:07:50 +00:00
Tim Starling
0e4eace9dc Fixed link table problem for MSG (hopefully) 2004-01-25 08:58:49 +00:00
Mr. E23
44b781fd63 Added irc:// to list of recognized URLs 2004-01-19 21:36:25 +00:00
Tim Starling
3e867e762f minor bug fix 2004-01-17 10:07:03 +00:00
Tim Starling
a12ffe0cea Bug fixes: watchlist and recent changes linked were broken in the last commit 2004-01-17 09:49:43 +00:00
Jens Frank
d7889309ba Bug#790303 - Fix javascript or external URL insertion in style= attributes 2004-01-17 07:33:44 +00:00
Mr. E23
225fa83227 Cleaned up OutputPage::replaceVariables() a bit. Some performance gain by doing several replacements at once in MagicWord::replaceMultiple() 2004-01-10 22:49:37 +00:00
Brion Vibber
eb59e628df Remove sometimes erroneous duplicate Content-encoding header for gzip.
As workaround for Apache2+PHP bug, avoid calling flush() in OutputPage::output
so headers aren't eaten during cache save.
2004-01-10 19:42:33 +00:00
Tim Starling
82c2a935ff Alteration of security fix to make it very slightly less ugly 2004-01-07 09:02:36 +00:00
Tim Starling
9798f043fc Fix security flaw in parser -- $unique in input text 2004-01-07 08:17:19 +00:00
Mr. E23
16b6b929ca A patch to cache articles after conversion to HTML but before insertion
into a full page. Significant speed improvements on cache hits, especially
on pages with many links.
2004-01-07 02:51:47 +00:00
Mr. E23
5af89c49c6 New fix for bug 869949 'Lists inside tables' from TomK32 2004-01-06 19:44:04 +00:00
Mr. E23
50878030e9 Fixed bug causing magic word MAG_NOEDITSECTION to be visible in plain text if user had section editing turned off 2004-01-06 00:47:52 +00:00
Mr. E23
c54d39a811 Last fix was broken, reverting to last edit by brion 2004-01-05 01:14:14 +00:00
Mr. E23
b3043bac5c Updated fix for bug 869949 'Lists inside tables' as suggested by TomK32 2004-01-05 00:52:07 +00:00
Mr. E23
0b8a4c370c Fixed bug 869949 'Lists inside tables' as suggested by TomK32 2004-01-05 00:25:55 +00:00
Brion Vibber
feb1eab844 Force redirect headers to use absolute URLs as per spec (though
browsers seem to accept relative ones); escape the page name
on the login cookie check.
2003-12-22 10:21:18 +00:00
Brion Vibber
2e6a6b3c88 Trim whitespace on TOC links 2003-12-22 08:03:21 +00:00
Brion Vibber
e70b344449 Fix for bug #859195: the string '0' evaluates to false in PHP, even when using the empty() function, which can break links in the form [[foo|0]] such that the pipe text is ignored and the link title shows as the text 2003-12-14 05:14:04 +00:00
Mr. E23
bdf73da2d2 The purpose of this modification is to ensure that every normal request
execution starts and ends in wiki.phtml, giving the code a somewhat
more predictable flow.

OutputPage.php:
* Added disable() method to Output class.
* Replaced exit() call in checkLastModified() with "return true" (thereby
  altering its contract quite severly).
* reportTime() now only returns elapsed time, code with side effects
  moved to logProfilingData() in GlobalFunctions.php.

GlobalFunctions.php:
* Added function logProfilingData() which does most of what
  OutputPage->reportTime() used to do.

Article.php:
* Replaced exit() in checkLastModified() with "return true" (thereby altering
  its contract quite severly).
* replaced implicit exit in calls to checkLastModified() and tryFileCache()
  with returns.

LogPage.php:
* replaced implicit exit() with return in call to checkLastModified()

SpecialRecentchanges.php:
* replaced implicit exit() with return in call to checkLastModified()

wiki.phtml:
* Single call to logProfilingData() at the end of the request.
2003-12-11 20:16:34 +00:00
Mr. E23
53fba653e0 Replaced calls to exit() with wfAbruptExit(). 2003-12-10 15:05:08 +00:00
Brion Vibber
03022828ce Only emit the javascript to set editbox focus when we're really editing 2003-12-10 10:30:14 +00:00
Brion Vibber
98e99ce5fb #855829; El's patch to reduce breakage of <nowiki>,<math>,<pre> tags where the placeholders are duplicated in other parsing steps 2003-12-08 04:28:10 +00:00
Tim Starling
8b85aafbf2 Date formatter into temp branch 2003-11-20 13:40:30 +00:00
Brion Vibber
e3a4c27c75 Finish removing HTTP_SERVER_VARS in favor of _SERVER; fix notifications for the paranoid 2003-11-18 02:39:38 +00:00
Brion Vibber
7ab8c692ce Bug 839664; use 'empty' to avoid notifications for people with insane PHP error reporting settings. Also commented out a section of code in setEncodings that was being run but the result thrown away 2003-11-15 23:06:59 +00:00