summaryrefslogtreecommitdiff
path: root/lib/util.php
AgeCommit message (Collapse)Author
2010-10-07Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-10-07Workaround for regression in input validation due to more PCRE oddities. ↵Brion Vibber
Recommend redoing common_validate_utf8() using something more reliable, perhaps. :P
2010-10-06Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-10-06Basic validation of UTF-8 input via GET/POST vars: invalid UTF-8 sequences ↵Brion Vibber
will cause the string to drop. Not necessarily super-thorough; should be improved in future to drop individual bad sequences, do normalization of combining forms, etc. General input validation (for ints, types of strings, etc) still would be good to have!
2010-10-04Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 1.0.xBrion Vibber
Conflicts: actions/hostmeta.php actions/imsettings.php classes/User.php lib/adminpanelaction.php lib/channel.php lib/default.php lib/router.php lib/util.php
2010-09-20Don't spew a notice warning to output while processing logging for PEAR DB ↵Brion Vibber
errors
2010-09-20Ticket #2750: fixes to HTTP caching behavior across login/logout boundariesBrion Vibber
* now ignoring if-modified-since if we failed an etag if-none-match comparison, per spec * now including a hash of user id/nickname in most etags, so we'll update the view properly after login/logout For API methods, checking the API-auth'ed user. (Many change results to include things like 'you're subscribed to this user' or 'this is one of your favorites', so user info is again needed) There'll still be some last-modified stamps that aren't including user info properly, probably.
2010-09-16Add plural support for minutes/hours/days/months ago.Siebrand Mazeland
Reapply of revised b27882c9166191de4aaea298ba1b1a524cfe9ac7 that was reverted by Brion Vibber in 2d4c0f9a47f6534c578a37abe79670cec699caae.
2010-09-15Revert "Add plural support for minutes/hours/days/months ago." -- currently ↵Brion Vibber
doesn't work and spews error messages This reverts commit b27882c9166191de4aaea298ba1b1a524cfe9ac7.
2010-09-13Remove trailing whitespace and update comment consistency on methods.Siebrand Mazeland
2010-09-13Add plural support for minutes/hours/days/months ago.Siebrand Mazeland
2010-09-06common_cache_key() -> Cache::key()Evan Prodromou
2010-09-06common_keyize() -> Cache::keyize()Evan Prodromou
2010-09-06remove NOOP function common_broadcast_notice()Evan Prodromou
2010-09-06common_memcache() => Cache::instance()Evan Prodromou
2010-09-02Merge branch '0.9.x' into 1.0.xBrion Vibber
Conflicts: lib/command.php
2010-09-02Fix for #2635: use ssl-sometimes settings for Twitter settings & auth pagesBrion Vibber
2010-08-13Merge branch 'master' into 1.0.xEvan Prodromou
2010-08-12Fix for ticket 2513: "Can't linkify" error when some links are shortenedBrion Vibber
When bogus SSL sites etc were hit through a shortening redirect, sometimes link resolution kinda blew up and the user would get a "Can't linkify" error, aborting their post. Now catching this case and just passing through the URL without attempting to resolve it. Could benefit from an overall scrubbing of the freaky link/attachment code though...! :) http://status.net/open-source/issues/2513
2010-08-03Merge branch '0.9.x' into 1.0.xEvan Prodromou
2010-07-12Ticket 2433: Skip locale fallback list check on Windows ('locale -a' ↵Brion Vibber
shell-out doesn't work there)
2010-06-10Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 1.0.xBrion Vibber
Conflicts: lib/default.php lib/util.php plugins/UrlShortener/UrlShortenerPlugin.php (has been removed?)
2010-06-07Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
Conflicts: plugins/OpenID/openid.php
2010-06-03Skip enqueueing to outgoing bridges on incoming remote messages. Twitter, ↵Brion Vibber
Facebook, RSSCloud, and OStatus checks were enqueued on these when they'd never do anything but churn the queue servers. Notice::isLocal() can replace a number of manual checks for $notice->is_local being LOCAL_PUBLIC or LOCAL_NONPUBLIC.
2010-05-21Merge branch 'testing' into 0.9.xBrion Vibber
2010-05-19Quick fix for creating OpenID accounts authenticating against a MediaWiki ↵Brion Vibber
site; trim the 'User:' etc from the final path segment before generating a nickname from it. Avoids ending up with nicks like 'userbrion' on your first OpenID login!
2010-05-19Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-05-19Merge branch 'testing' into 0.9.xBrion Vibber
Conflicts: plugins/OpenID/openidlogin.php
2010-05-19Locale switch cleanup: use common_switch_locale() which is safer for ↵Brion Vibber
updating gettext state. Also moved a few calls to reduce chance of hitting an exception before switching back. Should help with problems where xmppdaemon would get stuck in wrong locale.
2010-05-14Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-05-14Merge branch 'testing' into 0.9.xBrion Vibber
2010-05-11Windows server fix: Use platform EOL in debug log fileBrion Vibber
2010-05-05Add ?uselang=xx language override option (only valid, locally-enabled ↵Brion Vibber
languages supported, just as with headers and user settings). Great aid for debugging & translation testing
2010-04-30Merge branch '0.9.x' into 1.0.xBrion Vibber
Conflicts: lib/util.php
2010-04-26Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.xEvan Prodromou
2010-04-26Give users more control over URL shorteningEvan Prodromou
Users and administrators can set how long an URL can be before it's shortened, and how long a notice can be before all its URLs are shortened. They can also turn off shortening altogether. Squashed commit of the following: commit d136b390115829c4391b3666bb1967f190a0de35 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:39:00 2010 -0400 use site and user settings to determine when to shorten URLs commit 1e1c851ff3cb2da5e0dc3a0b06239a9d9c618488 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:38:40 2010 -0400 add a method to force shortening URLs commit 4d29ca0b91201f6df42940297ed5b64b070efe49 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:37:41 2010 -0400 static method for getting best URL shortening service commit a9c6a3bace0af44bcf38d1c790425a7be9c72147 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:37:11 2010 -0400 allow 0 in numeric entries in othersettings commit 767ff2f7ecfd7e76e8418fc79d45e61898f09382 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:36:46 2010 -0400 allow 0 or blank string in inputs commit 1e21af42a685f600f4a53f49a194013e78b12f20 Author: Evan Prodromou <evan@status.net> Date: Mon Apr 26 02:01:11 2010 -0400 add more URL-shortening options to othersettings commit 869a6be0f5779aff69018d02f9ac0273946040d9 Author: Evan Prodromou <evan@status.net> Date: Sat Apr 24 14:22:51 2010 -0400 move url shortener superclass to lib from plugin commit 9c0c9863d532942b99184f14e923fc3c050f8177 Author: Evan Prodromou <evan@status.net> Date: Sat Apr 24 14:20:28 2010 -0400 documentation and whitespace on UrlShortenerPlugin commit 7a1dd5798f0fcf2c03d1257a18ddcb9008879de0 Author: Evan Prodromou <evan@status.net> Date: Sat Apr 24 14:05:46 2010 -0400 add defaults for URL shortening commit d259c37ad231ca0010c60e5cfd397bb1732874a4 Author: Evan Prodromou <evan@status.net> Date: Sat Apr 24 13:40:10 2010 -0400 Add User_urlshortener_prefs Add a table for URL shortener prefs, a corresponding class, and the correct mumbo-jumbo in statusnet.ini to make everything work.
2010-04-21add 'always' parameter to common_shorten_linksCraig Andrews
2010-04-20Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
2010-04-20Merge branch 'master' of gitorious.org:statusnet/mainline into testingBrion Vibber
2010-04-20Fix email notifications for @-replies that come via OStatus.Brion Vibber
* Moved notification sending from Notice::saveReplies to distrib queue handler, so it'll pull from the reply set we've saved regardless of how we got it. * Set up gettext infrastructure for command-line scripts; gets localization mail notifications etc working from background queues. * Adjusted locale switching: common_switch_locale() works at runtime for bg scripts, forces a message catalog update
2010-04-18Merge branch '0.9.x' into 1.0.xCraig Andrews
Conflicts: actions/confirmaddress.php actions/imsettings.php
2010-04-11Add translator documentation and FIXMEs that plural support should be added ↵Siebrand Mazeland
for some messages.
2010-04-09Merge branch 'testing' into 0.9.xBrion Vibber
2010-04-08Maintain 'page' parameter for block from subscribers list, block & ↵Brion Vibber
make-admin from group members list. Refactored some of the returnto handling code. It looks like we have several different ways of handling this in the software, icky! Marked the session-based functions with fixmes (they'll stomp on other forms when multiple tabs/windows are used) and combined some commonish bits of code between ProfileFormAction and the group block & makeadmin actions where they're using hidden form parameters. Extended that to allow passing dynamic parameters (eg 'page') as well as static ones (action, target user/group).
2010-04-08In single-user mode, link #hashtags to the user's tagged stream rather than ↵Brion Vibber
the global tag action, which isn't registered. Previously they would end up pointing to the home URL.
2010-04-08Revert "scripts/strip_geo.php to remove geodata from notices by a given ↵Brion Vibber
user/profile." This reverts commit ab20e75ff8feab01b4fec81c02b8b4039d65cca0. Accidentally removed another commit; clearing up...
2010-04-08scripts/strip_geo.php to remove geodata from notices by a given user/profile.Brion Vibber
May be slow or run out of memory if run on particularly prolific posters -- not yet optimized for that case. Note that geodata that has already been sent out to other services (via ostatus, omb, twitter, etc) will not be removed from them.
2010-04-08In single-user mode, link #hashtags to the user's tagged stream rather than ↵Brion Vibber
the global tag action, which isn't registered. Previously they would end up pointing to the home URL.
2010-04-02Merge branch '0.9.x' into 1.0.xBrion Vibber
Conflicts: actions/imsettings.php lib/jabber.php Made a quick attempt to merge the new JID validation into the XmppPlugin, have not had a chance to test that version live yet. Should also move over the test cases.
2010-03-31Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.xBrion Vibber