summaryrefslogtreecommitdiff
path: root/lib/util.php
AgeCommit message (Collapse)Author
2009-09-30Outputting UTF-8 charset in document header irrespective of mimetype.Sarven Capadisli
2009-09-23Revert "When viewing a page in https, all links to non-actions (links to ↵Evan Prodromou
CSS, JS, etc) should be https. Fixes the mixed content warnings that browsers display." This reverts commit 20997619b353faa94591800fbfc02bc19a4cdce3. The commit doesn't take into account having different servers (theme server, avatar server) and being able to set HTTPS for some but not all.
2009-09-13When viewing a page in https, all links to non-actions (links to CSS, JS, ↵Craig Andrews
etc) should be https. Fixes the mixed content warnings that browsers display. Fixes http://status.net/trac/ticket/1552
2009-09-10Allow @ signs in the path, querystring, and fragment parts of URLsCraig Andrews
2009-09-10Re-use enclosure decision logic to decide if a link gets a ↵Craig Andrews
paperclip/lightbox popup.
2009-09-10Revert "If a shortened URL begins with http://, don't include it in the ↵Craig Andrews
shortened url. Saves 7 characters, which is pretty awesome for 140 character max length notices." This reverts commit e2848eb8621dd645fa68cb1641c0af1df5530408. Downstream consumers of our notices (such as Friendfeed, Facebook, etc) don't have sophisticated URL detection, so a notice that reads: "check out ur1.ca/1" won't be linked. So the http:// prefix is mandatory.
2009-09-09If a shortened URL begins with http://, don't include it in the shortened ↵Craig Andrews
url. Saves 7 characters, which is pretty awesome for 140 character max length notices.
2009-09-09:: isn't a valid IPv6 address for our purposesCraig Andrews
2009-09-05more info in error message, to help next person who has to debug localesbrenda
2009-09-04Added additional characters as allowed in URLs.Craig Andrews
2009-08-31Fix attachment savingCraig Andrews
2009-08-31Allow :'s in the path, query string, and fragment parts of the url ↵Craig Andrews
(Mediawiki URLs often do this)
2009-08-28Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.xEvan Prodromou
2009-08-28Add % and ~ as valid characters in the path, querystring, and fragment parts ↵Craig Andrews
of URLs
2009-08-28fix 'callback_helper'0.8.1Evan Prodromou
2009-08-27make URL analyzer save new info on URLs0.8.1rc2Evan Prodromou
2009-08-27remove duplicate save of Notice and streamline attachment detectionEvan Prodromou
2009-08-27reformat curry() to make my editor happyEvan Prodromou
2009-08-27Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.xEvan Prodromou
2009-08-27Do not used named capturing groupsCraig Andrews
I'm not sure all php 5.2's are compiled with a PCRE library that supported named captures.
2009-08-25global search and replace for laconica -> statusnetEvan Prodromou
2009-08-25a distributed -> the distributedEvan Prodromou
2009-08-25change Laconica and Control Yourself to StatusNet in PHP filesEvan Prodromou
2009-08-25Allow ({['" to preceded #tagsCraig Andrews
2009-08-25Handle grouping symbols ()[]{} correctly. Now passing all tests!Craig Andrews
2009-08-25Add UTF-8 encodings of the IDN TLDsCraig Andrews
2009-08-25All tests pass except for those that require matching parens or bracketsCraig Andrews
2009-08-25Improved the URL tests, and improve the matcher so more tests are passed. ↵Craig Andrews
The remaining failing tests I believe are incorrect.
2009-08-21Finally got the IPv6 regex right in the url finderCraig Andrews
2009-08-21Improve url finding more. Properly end urls when a space is caught.Craig Andrews
2009-08-21URLs surrounded by (),{}, and [] are correctly handled now!Craig Andrews
2009-08-21Linkifier support many more urls, and less mismatchesCraig Andrews
2009-08-21Use currying to call the url callbacks, and use preg_replace_callbackCraig Andrews
This definitely looks neater than the string maniplation it replaces
2009-08-20Change the notice type defines all into class constants and adapt all files.Marcel van der Boom
2009-08-18Removed all the redundant logic in common_replace_urls_callbackCraig Andrews
Modified the regex so that strings such as /usr/share/perl5/HTML/Mason/ApacheHandler.pm as not turned into links
2009-08-18IPv4 and IPv6 addresses are picked up in URLsCraig Andrews
Added ".onion" as a possible TLD
2009-08-02Fixed PHP Notices:Jeffery To
Undefined index: HTTP_X_FORWARDED_FOR Undefined index: HTTP_CLIENT_IP Undefined variable: proxy Also fixed the return value order to match calls to common_client_ip() in actions/api.php and lib/rssaction.php
2009-08-02Fixed PHP Notice "Use of undefined constant session_name - assumed ↵Jeffery To
'session_name'"
2009-07-26lowercase tags using mb_convert_case(), which understands many more ↵Brenda Wallace
alphabets than I do.
2009-07-22Merge commit 'br3nda/0.8.x-hashtags' into 0.8.xCraig Andrews
2009-07-21Detect xmpp uri's and make them into hyperlinksCraig Andrews
http://laconi.ca/trac/ticket/1592
2009-07-20show full utf8 in tagsBrenda Wallace
2009-07-04don't try to show non-objectEvan Prodromou
2009-07-03Merge branch '0.8.x' into queuemanagerEvan Prodromou
2009-07-02Make logging facility configurableZach Copley
2009-07-02Merge branch '0.8.x' into queuemanagerEvan Prodromou
2009-07-01Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev ↵Evan Prodromou
into 0.8.x
2009-07-01better transport choices when xmpp is disabledEvan Prodromou
2009-07-01take out session handler notificationEvan Prodromou
2009-07-01Add UnQueueManager for immediate handlingEvan Prodromou
Perhaps it's a little precious, but I took out the switches in util.php to determine what's supposed to be sent when, and made a queuemanager class that will just do things when they're supposed to be done.