Commit graph

276 commits

Author SHA1 Message Date
Raimond Spekking 8ce8803ff1 Localisation updates for core and extension messages from translatewiki.net (2010-12-13 20:33:00 UTC) 2010-12-13 20:58:38 +00:00
Raimond Spekking abc06ccc39 Localisation updates for core and extension messages from translatewiki.net (2010-12-03 23:39:00 UTC) 2010-12-03 23:09:07 +00:00
Raimond Spekking 5abd1145c9 Localisation updates for core and extension messages from translatewiki.net (2010-11-30 20:23:00 UTC) 2010-11-30 20:47:01 +00:00
Raimond Spekking 7d94a337f9 Localisation updates for core and extension messages from translatewiki.net (2010-11-28 20:30:00 UTC) 2010-11-28 20:45:25 +00:00
Raimond Spekking 6cc2ca442c Localisation updates for core and extension messages from translatewiki.net (2010-11-26 21:27:00 UTC) 2010-11-26 21:52:21 +00:00
Tim Starling 4606c89f74 Proxy configuration feature, since $wgHTTPProxy tends to screw up unrelated code. 2010-11-25 12:38:25 +00:00
Tim Starling 87d6eb6c7d * Avoid XSS via malicious RSS on wikis with $wgRawHtml = true. Mostly reverts r77031.
* Avoid formatting errors due to RSS descriptions which contain "}}", which was ending the item template prematurely.
2010-11-23 02:16:05 +00:00
Raimond Spekking b31b73270b Localisation updates for core and extension messages from translatewiki.net (2010-11-21 19:57:00 UTC) 2010-11-21 20:20:38 +00:00
Raimond Spekking b6e0f1b50f Localisation updates for core and extension messages from translatewiki.net (2010-11-20 11:25:00 UTC) 2010-11-20 11:54:40 +00:00
Mark A. Hershberger 6003693caf followup r76848 by using wfEscapeWikiText() on all bits except links. Escape links using wfEscapeWikiText() that, after we've parsed them with parse_url(), don't have a scheme in our list of validSchemes. 2010-11-19 21:02:01 +00:00
Mark A. Hershberger b6befdf40b followup r76848 Make sure to use wfEscapeWikiText 2010-11-19 19:01:09 +00:00
Raimond Spekking 00e02ed838 Localisation updates for core and extension messages from translatewiki.net (2010-11-18 20:47:00 UTC) 2010-11-18 21:11:56 +00:00
Mark A. Hershberger d997781fb4 * Remove references to unused charset handling.
* Remove references to unused config variables.
* Consolidate renderItem() to a single loop instead of a separate one for highlighting displayFields.
* Make sure everything gets htmlspecialchars() treatment.
o
2010-11-16 23:21:36 +00:00
Mark A. Hershberger a5321b114b * Remove the call to disableCache(), that, upon double-checking, does undermine the caching that updateCacheExpiry() is trying to set up in the very next line.
* Fix renderItem so that it isn't overly complex and just subsitutes the parsed contents of RSS elements (e.g. {{{description}}} is substituted with the contents of the <description> tag).
2010-11-16 22:06:59 +00:00
Raimond Spekking 35365abac2 Localisation updates for core and extension messages from translatewiki.net (2010-11-16 20:13:00 UTC) 2010-11-16 20:33:22 +00:00
Raimond Spekking 4d7eab1c36 Fix encoding 2010-11-16 09:29:53 +00:00
Mark A. Hershberger c06345b95e Add back cache setting that was accidently removed 2010-11-15 23:47:12 +00:00
Roan Kattouw 61f5f7caba RSS extension:
* Prefix memcached keys with 'rss'
* Check is_array() rather than != null before using list() on the cache entry
* Fix language in comment
2010-11-13 19:16:39 +00:00
Roan Kattouw ff4e370bed RSS: instanceOf -> instanceof, $ERROR -> $error 2010-11-13 19:11:28 +00:00
Raimond Spekking 3381ea30b9 Localisation updates for core and extension messages from translatewiki.net (2010-11-09 21:07:00 UTC) 2010-11-09 21:12:00 +00:00
Raimond Spekking c206eac8c5 Localisation updates for core and extension messages from translatewiki.net (2010-11-08 20:05:00 UTC) 2010-11-08 20:25:23 +00:00
Raimond Spekking 05eaa56c4a Localisation updates for core and extension messages from translatewiki.net (2010-11-07 20:44:00 UTC) 2010-11-07 21:00:22 +00:00
Raimond Spekking da3692b53a Localisation updates for core and extension messages from translatewiki.net (2010-11-06 20:26:00 UTC) 2010-11-06 20:53:34 +00:00
Alexandre Emsenhuber 7ca3fed664 svn:eol-style native -R . -q 2010-11-05 19:46:45 +00:00
Raimond Spekking cac1354ec8 Localisation updates for core and extension messages from translatewiki.net (2010-11-05 15:10:00 UTC) 2010-11-05 15:34:04 +00:00
Jack Phoenix 4e23b840bc RSS: coding style and documentation tweaks 2010-11-05 00:59:28 +00:00
Mark A. Hershberger 4a06accf23 don't fail where itemTemplate is filled with 0s 2010-11-04 23:47:06 +00:00
Mark A. Hershberger 81d995c0aa Remove bogus check for !isGood() status. 2010-11-04 23:38:47 +00:00
Mark A. Hershberger f3c74eaeb3 followup r76053 — add missed i18n messages 2010-11-04 23:20:49 +00:00
Mark A. Hershberger 3aa74a03f8 Re Roan's new review on IRC yesterday:
* Add function documentation that I should have written before.
* Create separate RSSParser class to clean up RSS.php
* Create separate RSSHooks class to handle parser initialization and
  public interface for parser to use.
* Move User Agent definition to $wgRSSUserAgent from a define.
* Eliminate references to $wgRSSUseGzip (since were using MW's
  internal HTTP client, it didn't do anything anyway, ATM).

Re Tim's emailed review (discovered yesterday):
* Switch to DOMXPath::query() from DOMXPath::evaluate() at Tim's
  suggestion.
* Move highlighting callback to its own class, RSSHighlighter, so that
  it works as a callback without create_function() and other mess.
2010-11-04 23:19:00 +00:00
Mark A. Hershberger 70cd9b0503 re r75046 - implement highlighting in a (hopefully) less ugly way 2010-11-02 17:56:35 +00:00
Mark A. Hershberger b327d5d893 follow up r75046: Quote regex chars in variable strings used in preg_* 2010-11-02 15:26:19 +00:00
Mark A. Hershberger 8bded939e4 Add missing note about security re r75841 2010-11-01 23:09:51 +00:00
Mark A. Hershberger d5afc1af52 * Add note about security measures we're taking.
* Protect against possibility where rss member in renderRss is not an
  object.
* Move user-agent string up to a define().
* Remove use of $rssTemp var in renderItem() by inlining code.
2010-11-01 23:08:06 +00:00
Mark A. Hershberger 19fa56a6e9 * Add member $displayFields so that we don't highlight and/or filter
on stuff the user will never see.
* Clean up and fix canDisplay() and filter() methods so they actually
  works.
2010-11-01 21:14:26 +00:00
Mark A. Hershberger fd95eaf9cf minor stylize 2010-11-01 21:03:22 +00:00
Mark A. Hershberger 153cd40ef1 * Switch to $wgMemc from $parserMemc re 75799
* Change last_modified member var to lastModified re Pre-commit Checklist
2010-11-01 18:48:34 +00:00
Mark A. Hershberger 537efdd554 stylize, remove error_log 2010-11-01 18:29:09 +00:00
Mark A. Hershberger 76910c268b * Remove RSSCache.php and use $parserMemc to store parsed RSS feeds.
* Remove RSSFetch.php and move functionality to main RSS class
* Simplify how RSSData is constructed so we can pass it a DOMDocument
  object instead of an HTTPResponse.
* Move wf functions into RSS class since they shouldn't really be
  globally available.
2010-11-01 16:25:04 +00:00
Siebrand Mazeland 15a370ddc9 Localisation updates from translatewiki.net 2010-10-31 17:55:47 +00:00
Alexandre Emsenhuber c784e3249a svn:eol-style native 2010-10-23 13:42:49 +00:00
Roan Kattouw 63eb8cf7d4 Stylize RSS extension 2010-10-20 18:28:47 +00:00
Jack Phoenix a4b3195671 RSS: follow-up to r75046: coding style tweaks 2010-10-20 11:25:10 +00:00
Mark A. Hershberger 36c7ffc0af follow up r75046 — fix use of wfDebugLog() and replace getMessage() method on Status object with a method the Status object actually has: getWikiText(). 2010-10-20 00:27:32 +00:00
Mark A. Hershberger 13bc857751 Remove Extraneous var_dump from r75046 2010-10-19 23:33:41 +00:00
Mark A. Hershberger 4f78c58549 version bump 2010-10-19 22:28:12 +00:00
Mark A. Hershberger e14f1ce5f2 * Use [[Template:RSSPost]] (and [[Mediawiki:Rss-item]]) (or another
specified template) to display the feeds and remove hard-coded HTML.
* Add check to make sure the cache dir is writable and put an error in
  the debug log if not.
* Remove Snoopy.class.php — replace with use of the Http class.
* Remove RSSParse.php — which was a copy of MagpieRSS and use plain
  XML parsing.  MagpieRSS looks unmaintained and has security
  problems.  http://www.madirish.net/?article=253 
* Remove references to Magpie RSS
* Remove (over?) use of wf{Supress,Restore}Warnings
* Construct simple RSSData class for normalizing (some of) the feed
  data.
2010-10-19 21:54:53 +00:00
Raimond Spekking d06c97258b Localisation updates for core and extension messages from translatewiki.net (2010-09-29 19:56:00 UTC) 2010-09-29 20:04:42 +00:00
Raimond Spekking 67c2ccb1ca Localisation updates for core and extension messages from translatewiki.net (2010-09-19 19:57:00 UTC) 2010-09-19 20:17:24 +00:00
Raimond Spekking 12441b9c7a Localisation updates for core and extension messages from translatewiki.net (2010-08-28 19:12:00 UTC) 2010-08-28 19:25:37 +00:00