Commit graph

57 commits

Author SHA1 Message Date
Colin Kuskie
944c76040a Make makeUrlCompliant as deprecated, and updated POD and subroutines accordingly. 2011-05-02 08:20:33 -07:00
Colin Kuskie
49374b43eb Operations should be able to handle UTF-8 urls, too. Fixes bug #11683 2010-07-27 15:37:53 -07:00
Colin Kuskie
1abe035183 Refactor test to move makeCompliant tests out of urlize. Tweak makeCompliant for speed and clarity. 2010-07-06 10:21:41 -07:00
Doug Bell
cc87552a22 weaken all session refs 2010-06-01 16:23:48 -05:00
Graham Knop
30ed305b62 put all url validation in WebGUI::Session::Url instead of i18n 2010-05-08 12:22:01 -05:00
Graham Knop
60a4a9b140 mark $session->datetime->time as deprecated and remove its use from core code 2009-10-05 20:56:37 -05:00
Colin Kuskie
1c9908f490 Encapsulate logic for determining if an SSL request has been made.
Refactor core modules to use that.
2009-08-19 18:25:00 +00:00
Colin Kuskie
1441fe2e88 Forward port urlize changes, and tests. 2009-06-10 03:34:09 +00:00
Graham Knop
4636041f5e fixed: assets can have urls with /./ or /../ in them, making them inaccessible 2009-06-10 00:42:37 +00:00
Randall Schwartz
2fc4f3b54d CDN: perltidy on new/changed code 2009-05-14 00:35:41 +00:00
Randall Schwartz
acd3fded45 Content Delivery Network (CDN) - optional, for either uploads only or both uploads & extras (rfe 9134) 2009-05-13 21:12:05 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Colin Kuskie
310d454162 Forward porting bug fixes for billing address and asset with uncommitted parent. 2009-01-23 15:33:30 +00:00
Graham Knop
5b1eb1c095 only escape dangerous characters 2008-10-21 18:11:32 +00:00
Graham Knop
d37ded3ddc fixed: Cross site scripting issue on operation pages 2008-10-06 15:49:30 +00:00
Colin Kuskie
4508fcd1af updating POD for Session/Url to talk about gateway URL 2008-09-04 20:26:57 +00:00
Colin Kuskie
6db3fc1005 forceSecureConnection: grab a url object and use it directly. 2008-07-26 02:09:09 +00:00
Colin Kuskie
59cc690859 fix a syntax error in Session/Url.pm 2008-07-25 17:39:29 +00:00
Kaleb Murphy
46562e9e8f Session/Url forceSecureConnection regex fix. 2008-07-25 16:48:21 +00:00
Kaleb Murphy
eff953b5ed Cart now redirects to ssl if the site is ssl enabled. 2008-07-24 19:56:54 +00:00
Colin Kuskie
39f1a3da3c forward port slash handling fix from 7.4 branch 2008-02-14 23:51:17 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +00:00
Colin Kuskie
afcc90b130 Documented a regexp in Session/Url.pm
Add passthruUrls to the list of URLs that are changed by fixUrl.
Wrote a bunch of POD for fixUrl
Changed the regular expressions related to badUrl so they don't need to copy the data.  This
will speed them up.
Fixed a bug where trailing slashes would defeat the badUrl check.
Re-indented according to WGBP.
Added tests to cover all of the changes.
2007-12-11 22:51:31 +00:00
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
Colin Kuskie
72906e27fb fixing handling of http:// calls in the Extras URL 2007-12-04 21:25:32 +00:00
Colin Kuskie
256b52a0d7 Final state and status fixes.
In these three files, any check for status=archived was removed, since
in each case it is possible that the Asset may want to be viewable
when it is archived, like Files, Posts, etc.
Updated Session/Url.t to remove tests for status=archived.
2007-11-22 18:46:17 +00:00
Colin Kuskie
f3b7b1bf8e Start adding coverage to the getBackToSiteURL method.
Remove the old commented out MockObject request code.  It's PseudoRequest or bust.
WGBP indent some of the Session/Url methods.
2007-11-09 21:23:00 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
Colin Kuskie
21c4fcb75f This patch adds user invitations, a way for existing users on a site
to send an email to their friends and invite them to create an account
on the site.  The feature is enabled or disabled in the site Settings.
(Operation/Settings.pm)

It is implemented as a new operation, Invite (Operation/Invite.pm,
Help/Invite.pm, i18n/English/Invite.pm), and the option is displayed
as an option on the user's account screen. (Operation/Shared.pm).
The form is templated, and lives in the Invite namespace.  Once
the invitation is submitted, if the user's email address is not
already in WebGUI, an email is sent and a record is stored in
the userInvitations table.

When the friend gets the invitation, they are taken to the account
creation screen, which conveniently has their email address already
filled in.  This required changes in the Auth modules (Auth.pm, Auth/*.pm),
and ProfileField.pm.  The latter was so that profile fields can have
their values manually set.  The former changes handle inserting the
email address, bypassing the anonymous registration check, and
updating the record in ther userInvitations table.

I refactored some code out of the AdminConsole for finding the url
back to the site and added it to Session/Url.pm.  The method is
called getBackToSiteUrl.
2007-06-10 16:38:43 +00:00
Yung Han Khoe
4112758902 Url's in rss feed don't use http_host because http_host includes port and sitenames in conf don't. 2007-04-25 16:20:45 +00:00
JT Smith
47c65b7d66 changed comma to colon to fix problems with macros that use commas as separators 2007-03-05 19:32:11 +00:00
Colin Kuskie
d995ff09fe Fixed a bug with WebGUI::Session::Url::page where, if preventProxyCache
was enabled a noCache param was always added to the URL.  In some
cases it would add 2 noCache params.

To fix this, I added a skipPreventProxyCache param to the gateway method,
and page just passes $pairs and $skipPreventProxyCache to gateway.

Added tests to Url.t to test gateway, page, makeAbsolute and urlize
to bring its coverage up to 100%.

Added tests to Stow.t to bring it's coverage up to 100% as well.
2006-09-30 17:23:44 +00:00
Colin Kuskie
b1a5c46fcb add 6 more tests for page and clean up the POD 2006-09-29 22:51:18 +00:00
Colin Kuskie
2d2b780ed6 More comments and POD for Session/Url.pm.
Tests for escape, unescape, extras methods.  Test code is big enough 
that I've added section delimiting comments.  This has helped make
the code a lot more readable.
2006-09-29 03:32:24 +00:00
Colin Kuskie
8174f9d2b4 More tests for WebGUI::Session::Url::getSiteUrl, which now has 100% test coverage.
Refactored getSiteUrl so it is very obvious as to how it works, replacing
code that was hard to cover.
2006-09-29 02:30:54 +00:00
Colin Kuskie
86a5cb9128 Fix the same problem with form params in getRequestedUrl as in
getRefererUrl and add tests to detect it.
2006-09-25 04:47:05 +00:00
Colin Kuskie
eea7b941c9 A few more tests to kick coverage up to 100 on WebGUI::Session::Setting
Convert it to use placeholders as well.
More WebGUI::Session::Url tests, and some bug fixes:
	getRefererUrl returned parameters and accepted weird methods that
	looked like http but weren't.
2006-09-25 03:49:25 +00:00
JT Smith
90cb569bb5 - fix: deleting workflows did not delete related instances and crons
- Added a "run" link to the scheduler and the running workflows listings to
   aid in debugging workflow errors.
 - fix: profile fields not validated by WebGUI::User
2006-09-15 06:08:30 +00:00
JT Smith
ce50d2808b - fix: Uncommitted, new Assets BREAK Navigations
- fix: I get on the chewed page
 - fix: Bug in updateMetaData function in AssetMetaData.pm
 - fix: Problems with In/Out Board
 - fix: Alternate Apache Port breaks "Commit with Approval"
 - Rearranged the "Getting Started" page in the default content to make it
   easier to follow for noobs.
2006-06-12 19:41:09 +00:00
Wouter van Oijen
e81ce2759a Fixed POD in 12 files reported by new test for invalid whitespace 2006-05-20 10:39:16 +00:00
JT Smith
a0120fa868 fixed a bug with url procesisng
added steves new images
2006-04-29 18:40:27 +00:00
JT Smith
8bace2e619 fix [ 1344318 ] utf8 support for uri_escape/URL::Escape 2006-04-28 21:11:59 +00:00
JT Smith
2f24cd3f3c [ 1475220 ] some 6.99 templates have double slashes 2006-04-28 16:59:32 +00:00
JT Smith
7fcfb11f20 made the file and image form fields better, but still have some work to do
began converting the article to have it's own attachments, but still have some work to do
2006-04-16 01:10:34 +00:00
JT Smith
29bd26a975 - Added a wiki-like feature that will automatically bring a user to the
create a page form if they are in admin mode, and click on a link to
   a page that doesn't exist yet.
2006-03-25 21:39:15 +00:00
JT Smith
7731a32559 fixed some pod errors
removed futile inbox attempt
2006-01-31 23:10:10 +00:00
Matthew Wilson
4a3121960f removal of dumpSession. 2006-01-26 05:39:16 +00:00
Matthew Wilson
09483e18c5 a ton of $session fixes (thanks to Colin), and a new $session checker, that supposedly, shouldn't be needed now. It can be backed out, however, easily. 2006-01-16 22:45:21 +00:00
Matthew Wilson
3c66a9105f lots of DESTROYs 2006-01-14 22:26:48 +00:00