1. set_url_var('test.php?test=value','test','value2');
Expected: test.php?test=value2
Result: Warning: preg_replace() [function.preg-replace]: Compilation
failed: nothing to repeat at offset 0 in functions/html.php on line 145 or
381
Affected versions: 1.4.11svn-20070602, 1.5.2svn-20070602
2. set_url_var('test.php?test=value&test2=value2','test',0,false));
Expected: test.php?test=0&test2=value2
Result: test.php?&test2=value2
Affected versions: 1.4.11svn-20070602, 1.5.2svn-20070602
Documentation does not inform that zero deletes parameter. It is impossible
to set parameter to zero value. Parameter is deleted incorrectly
3. 1.4.11svn-20070602 does not work with $link=true correctly. Third
argument in preg_replace call is not a reference.
Antoine Delignat
None
None
Public
|
Date: 2007-06-03 13:58
|
|
Date: 2007-06-03 08:29
|
|
Date: 2007-06-03 07:14
|
|
Date: 2007-06-03 06:44
|
|
Date: 2007-06-02 21:55
|
|
Date: 2007-06-02 10:59
|
|
Date: 2007-06-02 10:53
|
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2007-06-03 13:58 | bouchon |
| close_date | - | 2007-06-03 13:58 | bouchon |
| assigned_to | nobody | 2007-06-02 10:59 | bouchon |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use