Revisions for framework/Util/Util.php

Location: [ Horde ] / framework / Util / Util.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.384.6.33 FRAMEWORK_3 (+2 -2 lines) 10/30/2008 10:35 AM Chuck Hagenbuch chuck

MFH 1.434

1.434 (+2 -2 lines) 10/30/2008 10:28 AM Chuck Hagenbuch chuck

correct variable name
Bug: 7608
Submitted by: sirdiddy23@googlemail.com

1.384.6.32 FRAMEWORK_3 (+18 -1 lines) 10/16/2008 11:47 PM Chuck Hagenbuch chuck

MFH: log attempted clones of non-objects, return a copy for now in these cases

1.433 (+12 -2 lines) 10/16/2008 11:46 PM Chuck Hagenbuch chuck

Log attempted clones of non-objects

1.432 (+8 -1 lines) 10/16/2008 05:52 PM Chuck Hagenbuch chuck

for now, just return variables if trying to clone something that isn't an object

1.384.6.31 FRAMEWORK_3 (+4 -11 lines) 10/15/2008 04:23 PM Chuck Hagenbuch chuck

MFH 1.431

1.431 (+4 -11 lines) 10/15/2008 04:22 PM Chuck Hagenbuch chuck

this php bug was fixed in php 5.1+ as far as I can tell

1.384.6.30 FRAMEWORK_3 (+2 -2 lines) 09/12/2008 06:00 AM Jan Schneider jan

MFH: 1.430

Tags: HORDE_3_3, RELEASE_0_1_0

1.430 (+2 -2 lines) 09/12/2008 05:24 AM Jan Schneider jan

Apply English plural rules in the ngettext() stub.

1.384.6.29 FRAMEWORK_3 (+75 -1 lines) 09/12/2008 12:17 AM Chuck Hagenbuch chuck

MFH:
1.687     +72 -22    framework/Horde/Horde.php
1.429     +75 -1     framework/Util/Util.php
1.239     +10 -1     horde/config/conf.xml
1.1157    +3 -0      horde/docs/CHANGES
1.28      +12 -3     horde/services/go.php

1.429 (+75 -1 lines) 09/12/2008 12:10 AM Chuck Hagenbuch chuck

[cjh] Sign parameters to go.php with an HMAC based on a new secret key
configuration value, to prevent using go.php as an open referrer.
[cjh] Make logout tokens only valid for a configurable length of time.

Also:
- checkRequestToken in Horde no longer requires a token only be used once; that
logic is left to Horde_Form, and this matches IMP::checkRequestToken().
- added Util::hmac() along with methods for URL-safe base64 en-/de-coding.
- added ngettext to list of stubbed methods at the end of Util.php

1.384.6.28 FRAMEWORK_3 (+26 -1 lines) 05/06/2008 01:54 PM Michael M Slusarz slusarz

MFH: IMP.php - 1.679-1.682; rss.php - 1.15-1.16; Util.php - 1.426-1.428;
imp/docs/INSTALL - 1.94; dimp/docs/INSTALL - 1.18; dimple.php - 1.18-1.19;
imp.php - 1.213-1.214; cache.php - 1.9; conf.xml - 1.126

Tags: HORDE_3_3_RC1, HORDE_3_2_2, HORDE_3_2_1, HORDE_3_2, HORDE_3_2_RC4

1.428 (+2 -2 lines) 05/06/2008 01:40 PM Michael M Slusarz slusarz

Remove debug artifact.

1.427 (+12 -9 lines) 05/06/2008 01:15 PM Michael M Slusarz slusarz

Update getPathInfo() to remove reliance on registry.

1.426 (+23 -1 lines) 05/06/2008 12:54 PM Michael M Slusarz slusarz

Add Util::getPathInfo().

1.384.6.27 FRAMEWORK_3 (+7 -7 lines) 02/06/2008 10:56 AM Jan Schneider jan

MFH: 1.425

Tags: HORDE_3_2_RC3

1.425 (+7 -7 lines) 02/06/2008 09:06 AM Jan Schneider jan

Fix logic, this was creating sub-directories if a temp dir alreaedy existed.

1.384.6.26 FRAMEWORK_3 (+2 -2 lines) 01/02/2008 06:30 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_2_RC2

1.424 (+2 -2 lines) 01/02/2008 06:12 AM Jan Schneider jan

Happy New Year

1.384.6.25 FRAMEWORK_3 (+14 -15 lines) 12/20/2007 08:50 AM Jan Schneider jan

Merge from HEAD.

1.423 (+1 -2 lines) 08/01/2007 12:10 AM Chuck Hagenbuch chuck

Jon has assigned his copyrights to The Horde Project.

Tags: BEFORE_MERGE_3_2, HORDE_3_2_RC1, HORDE_3_2_ALPHA

1.422 (+2 -2 lines) 06/27/2007 01:23 PM Jan Schneider jan

Bump year, looks like a missed a few last time.

1.421 (+3 -3 lines) 06/18/2007 11:44 PM Chuck Hagenbuch chuck

Include CDATA in close window javascript

1.384.6.24 FRAMEWORK_3 (+6 -4 lines) 03/29/2007 08:34 AM Jan Schneider jan

MFH: 1.420

Tags: HORDE_3_1_9, HORDE_3_1_8, HORDE_3_1_7, HORDE_3_1_6, HORDE_3_1_5

1.420 (+6 -4 lines) 03/29/2007 07:56 AM Jan Schneider jan

Add parameter to Util::nocacheUrl() to not encode url. Fixes maintenance url generation.

1.419 (+3 -3 lines) 01/24/2007 12:47 PM Chuck Hagenbuch chuck

Use PHP_VERSION and PHP_SAPI_NAME instead of function calls
Use strncasecmp() instead of substr() for checking beginning substring.

1.384.6.23 FRAMEWORK_3 (+3 -3 lines) 01/11/2007 01:55 PM Chuck Hagenbuch chuck

[cjh] Fix Util::addParameter when it is passed a base URL that contains an
urlencoded ampersand.

Tags: HORDE_3_1_4, HORDE_3_1_4_RC1

1.418 (+3 -3 lines) 01/11/2007 01:55 PM Chuck Hagenbuch chuck

[cjh] Fix Util::addParameter when it is passed a base URL that contains an
urlencoded ampersand.

1.384.6.22 FRAMEWORK_3 (+10 -2 lines) 01/09/2007 06:23 PM Jan Schneider jan

MFH 1.415-1.417

1.417 (+2 -1 lines) 01/09/2007 06:16 PM Jan Schneider jan

Define variable.

1.416 (+6 -2 lines) 01/09/2007 06:15 PM Jan Schneider jan

Add new parameter at the end, we have some code that relies on it.

1.415 (+4 -1 lines) 01/09/2007 06:10 PM Jan Schneider jan

Automatically detect encoding again.

1.384.6.21 FRAMEWORK_3 (+3 -3 lines) 01/02/2007 08:54 AM Jan Schneider jan

Happy New Year

1.414 (+2 -2 lines) 01/02/2007 07:47 AM Jan Schneider jan

Happy New Year

1.413 (+2 -2 lines) 01/01/2007 07:40 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.384.6.20 FRAMEWORK_3 (+13 -9 lines) 12/13/2006 11:42 AM Jan Schneider jan

MFH 1.412

1.412 (+12 -8 lines) 12/13/2006 11:35 AM Jan Schneider jan

Implement a much more efficient, yet safer file wiping algorithm.

1.384.6.19 FRAMEWORK_3 (+2 -4 lines) 11/21/2006 07:02 AM Jan Schneider jan

MFH: 1.411

1.411 (+2 -4 lines) 11/21/2006 06:48 AM Jan Schneider jan

Simplify.

1.384.6.18 FRAMEWORK_3 (+26 -41 lines) 11/03/2006 02:47 AM Michael M Slusarz slusarz

MFH 1.409, 1.410

1.410 (+2 -2 lines) 11/03/2006 12:52 AM Michael M Slusarz slusarz

Need to urldecode parameters before we reencode.

1.409 (+26 -41 lines) 11/03/2006 12:48 AM Michael M Slusarz slusarz

Clean up addParameter().  $encode will now unencode the entire URL if set
to false - this allows us to control the ultimate output even if we don't
have 100% control over the original URL.
Replace get_html_translation_table() calls with html_entity_decode().

1.384.6.17 FRAMEWORK_3 (+9 -4 lines) 05/05/2006 12:02 PM Jan Schneider jan

MFH: 1.408

Tags: HORDE_3_1_3, HORDE_3_1_2

1.408 (+9 -4 lines) 05/05/2006 11:57 AM Jan Schneider jan

Cache flipped translation table, and cache in removeParameter() too.

1.384.6.16 FRAMEWORK_3 (+7 -2 lines) 05/05/2006 11:44 AM Jan Schneider jan

MFH: 1.407

1.407 (+7 -2 lines) 05/05/2006 11:40 AM Jan Schneider jan

Cache expensive HTML translation table.

1.406 (+3 -3 lines) 05/03/2006 12:18 AM Chuck Hagenbuch chuck

file_exists doesn't need to be silenced

1.405 (+7 -7 lines) 04/16/2006 11:05 PM Chuck Hagenbuch chuck

minor CS cleanup

1.384.6.9.2.1 FRAMEWORK_3_0 (+23 -9 lines) 03/28/2006 07:33 AM Jan Schneider jan

MFH: Replace all unnecessary eval() calls. Prepare 3.0.10 release.

Tags: HORDE_3_0_12, HORDE_3_0_11, HORDE_3_0_10

1.384.6.15 FRAMEWORK_3 (+23 -9 lines) 03/28/2006 07:31 AM Jan Schneider jan

MFH: Replace all unnecessary eval() calls. Prepare 3.1.1 release.

Tags: HORDE_3_1_1

1.404 (+23 -9 lines) 03/28/2006 07:26 AM Jan Schneider jan

Replace all unnecessary eval() calls.

1.384.6.14 FRAMEWORK_3 (+2 -1 lines) 01/03/2006 05:07 PM Jan Schneider jan

MFH: 1.403

Tags: HORDE_3_1, HORDE_3_1_RC3, HORDE_3_1_RC2, HORDE_3_1_RC1

1.403 (+2 -1 lines) 01/03/2006 05:03 PM Jan Schneider jan

Add @since

1.384.6.13 FRAMEWORK_3 (+8 -6 lines) 01/03/2006 02:34 PM Chuck Hagenbuch chuck

MFH: add default argument to Util::nonInputVar

1.402 (+8 -6 lines) 01/03/2006 02:30 PM Chuck Hagenbuch chuck

make this more generally useful, and allow Util::nonInputVar() to take a default value.

1.384.6.12 FRAMEWORK_3 (+3 -3 lines) 01/01/2006 04:28 PM Jan Schneider jan

Happy new year

1.401 (+3 -3 lines) 01/01/2006 04:10 PM Jan Schneider jan

Happy new year\!

1.400 (+1 -1 lines) 12/12/2005 12:36 PM Jan Schneider jan

typo

1.384.6.11 FRAMEWORK_3 (+1 -9 lines) 10/26/2005 02:25 PM Michael M Slusarz slusarz

MFH: Remove obsolete @since tags.

1.399 (+1 -9 lines) 10/26/2005 02:22 PM Michael M Slusarz slusarz

Remove obsolete @since tags.

1.384.6.10 FRAMEWORK_3 (+3 -6 lines) 10/18/2005 07:01 AM Jan Schneider jan

Merged from HEAD.

1.384.6.9 FRAMEWORK_3 (+2 -2 lines) 08/24/2005 10:04 AM Matt Selsky selsky

MFH: Use double-quotes.

Tags: FRAMEWORK_3_0, HORDE_3_0_9, HORDE_3_0_8, HORDE_3_0_7, HORDE_3_0_6, HORDE_3_0_6_RC1

1.398 (+2 -2 lines) 08/24/2005 09:23 AM Matt Selsky selsky

Use double-quotes.

Tags: BEFORE_MERGE_3_1

1.397 (+2 -2 lines) 08/06/2005 09:14 PM Chuck Hagenbuch chuck

Remove deprecated language="" attribute on script tags wherever possible.

1.384.6.8 FRAMEWORK_3 (+3 -2 lines) 07/11/2005 01:10 PM Jan Schneider jan

MFH: 1.396

Tags: HORDE_3_0_5, HORDE_3_0_5_RC2, HORDE_3_0_5_RC1

1.396 (+3 -2 lines) 07/11/2005 01:04 PM Jan Schneider jan

Fix assign-by-reference and return-by-reference at several places, to comply with BC breaking PHP 4.4 and 5.1. *sigh*

1.384.6.7 FRAMEWORK_3 (+1 -31 lines) 07/03/2005 01:22 AM Matt Selsky selsky

MFH: Remove "@access public".

1.395 (+1 -31 lines) 07/03/2005 01:15 AM Matt Selsky selsky

Remove "@access public".

1.384.6.6 FRAMEWORK_3 (+46 -1 lines) 06/08/2005 12:30 AM Michael M Slusarz slusarz

MFH: Backport realPath() to 3.0.5 since I believe this is the only item that
would hold up gollem from being able to be released with this version.

1.394 (+2 -2 lines) 06/08/2005 12:29 AM Michael M Slusarz slusarz

Backport realPath() to 3.0.5 since I believe this is the only item that
would hold up gollem from being able to be released with this version.

1.384.6.5 FRAMEWORK_3 (+8 -1 lines) 06/01/2005 12:43 AM Michael M Slusarz slusarz

MFH: Util.php - 1.393; Contents.php - 1.148

1.393 (+8 -1 lines) 06/01/2005 12:40 AM Michael M Slusarz slusarz

Move cloning fix to the Horde-wide Util::cloneObject().

1.384.6.4 FRAMEWORK_3 (+2 -2 lines) 05/31/2005 11:23 PM Matt Selsky selsky

MFH: Spaces.

1.392 (+2 -2 lines) 05/31/2005 11:19 PM Matt Selsky selsky

Spaces.

1.391 (+10 -5 lines) 04/24/2005 05:51 PM Chuck Hagenbuch chuck

Fix infinite loop with windows directories (\).

1.390 (+40 -0 lines) 04/14/2005 12:32 PM Jan Schneider jan

Add realPath(), a plain copy of Gollem::_absPath(). We can remove that method
if want Gollem to depend on Horde 3.1.

1.389 (+2 -5 lines) 04/05/2005 09:12 AM mdjukic

remove support for the old way of attaching params

1.384.6.3 FRAMEWORK_3 (+4 -4 lines) 01/12/2005 10:54 AM Chuck Hagenbuch chuck

MFH

Tags: HORDE_3_0_4, HORDE_3_0_4_RC2, HORDE_3_0_4_RC1, HORDE_3_0_3, HORDE_3_0_3_RC1

1.388 (+4 -4 lines) 01/12/2005 10:51 AM Chuck Hagenbuch chuck

Include classes that are used throughout at the top of the file, include optional dependancies when needed, and mark optional dependancies in package.xml

1.384.6.2 FRAMEWORK_3 (+18 -4 lines) 01/11/2005 03:44 PM Chuck Hagenbuch chuck

MFH: explicit includes

1.387 (+4 -3 lines) 01/11/2005 03:17 PM Chuck Hagenbuch chuck

Clarify the code inclusion requirements of all of these files. Strip @version while I'm at it if it's there.

1.386 (+14 -1 lines) 01/10/2005 05:19 AM Jan Schneider jan

str_replace() doesn't work here because it leads to multiple replacements.

1.385 (+2 -2 lines) 01/03/2005 08:09 AM Jan Schneider jan

Happy New Year

1.384.6.1 FRAMEWORK_3 (+4 -4 lines) 01/03/2005 07:19 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_0_2, HORDE_3_0_1

1.384 (+9 -3 lines) 11/19/2004 12:22 PM Jan Schneider jan

Correctly add array values.

Tags: FRAMEWORK_3, HORDE_3_0, HORDE_3_0_RC3

1.383 (+5 -5 lines) 10/11/2004 09:15 PM Chuck Hagenbuch chuck

not sure why these never got run through htmlspecialchars().

1.382 (+9 -5 lines) 08/24/2004 05:03 PM Jan Schneider jan

Default to add encode parameter separators (&) if none is set yet to be
XHTML compliant. This might break some javascript links or HTTP header, though
I didn't find any yet, but we have more HTML links than javascript links.

1.381 (+3 -4 lines) 08/24/2004 03:38 PM Jan Schneider jan

Make sure that $arg is defined.

1.380 (+13 -16 lines) 08/24/2004 03:33 PM Jan Schneider jan

Remove usage of arg_separator.output. Not thoroughly tested yet.

1.379 (+85 -98 lines) 08/24/2004 02:56 PM Jan Schneider jan

Doc tweaks.

1.378 (+3 -3 lines) 08/24/2004 09:40 AM Jan Schneider jan

Should not be necessary to urlencode the parameters, might even double encode
them.

1.377 (+10 -9 lines) 08/09/2004 11:10 AM Chuck Hagenbuch chuck

wrap comments

1.376 (+8 -3 lines) 07/06/2004 09:08 AM Jan Schneider jan

Fix addParameter() with arg separators different from '&'.

1.375 (+9 -4 lines) 07/06/2004 07:46 AM Jan Schneider jan

Fix removeParameter() with arg separators different from '&'.

1.374 (+9 -5 lines) 07/02/2004 10:04 AM Jan Schneider jan

Make sure to only add a glue when we really add a parameter, e.g. not if the
parameter to add already exists.

1.373 (+3 -3 lines) 06/14/2004 06:14 PM mdjukic

nit picking

1.372 (+3 -5 lines) 06/14/2004 06:12 PM mdjukic

not needed

1.371 (+19 -15 lines) 04/29/2004 04:05 PM Michael M Slusarz slusarz

These 'temp' changes broke PGP - since PGP needs to create a temporary
directory *inside* of the temporary directory passed in.
Additionally, S/MIME should require the same 'temp' directory to be passed
in also.

1.370 (+22 -19 lines) 04/28/2004 03:01 PM Chuck Hagenbuch chuck

Restore usage of parse_str, which fixes bugs that I introduced with my last
commit. Instead, loop through $params before rebuilding $url to flatten arrays.
Seems to work, though it should really be modified to handle multi-dimensional
arrays somehow.

1.369 (+23 -10 lines) 04/27/2004 05:53 PM Chuck Hagenbuch chuck

Try to make this work correctly for URLs containing array values
(varname[]=foo&varname[]=foo).

1.368 (+14 -5 lines) 04/13/2004 03:07 PM Michael M Slusarz slusarz

In addParameter(), much like removeParameter(), we must check and see if
we have not already 'html-ized' the query string already.  If so, we need
to use that character as the argument separator instead of the default arg
separator.

1.367 (+3 -3 lines) 04/07/2004 10:43 AM Chuck Hagenbuch chuck

No more HORDE_LIBS.

Only showing the 100 latest revisions. Show all revisions? (may take a while).