Changeset 336 for trunk/lib/Utilities.inc.php
- Timestamp:
- May 28, 2008 4:15:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Utilities.inc.php
r334 r336 43 43 * Return dump as cleaned text. Useful for dumping data into emails. 44 44 * 45 * @param mixed$var Variable to dump.45 * @param array $var Variable to dump. 46 46 * @param strong $indent A string to prepend indented lines (tab for example). 47 47 * @return string Dump of var. … … 971 971 function stripQuery($url) 972 972 { 973 return preg_replace(' ![?#].*!', '', $url);973 return preg_replace('/[?#].*$/', '', $url); 974 974 } 975 975
Note: See TracChangeset
for help on using the changeset viewer.