Ignore:
Timestamp:
May 28, 2008 4:15:25 AM (16 years ago)
Author:
quinn
Message:

Minor bugfixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Utilities.inc.php

    r334 r336  
    4343 * Return dump as cleaned text. Useful for dumping data into emails.
    4444 *
    45  * @param  mixed    $var        Variable to dump.
     45 * @param  array    $var        Variable to dump.
    4646 * @param  strong   $indent     A string to prepend indented lines (tab for example).
    4747 * @return string Dump of var.
     
    971971function stripQuery($url)
    972972{
    973     return preg_replace('![?#].*!', '', $url);
     973    return preg_replace('/[?#].*$/', '', $url);
    974974}
    975975
Note: See TracChangeset for help on using the changeset viewer.