Changeset 2921:f73344947866 for inc
- Timestamp:
- 01/18/15 08:04:21 (11 years ago)
- Branch:
- 2.7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.dc.adminurl.php
r2873 r2921 87 87 $u .= '?'.http_build_query($p,'',$separator); 88 88 } 89 // Dirty hack to get back %s instead of %25s in URLs used with (s)printf(), as http_build_query urlencode() its result. 90 return $parametric ? str_replace('%25s','%s',$u) : $u; 89 if ($parametric) { 90 // Dirty hack to get back %[n$]s instead of %25[{0..9}%24]s in URLs used with (s)printf(), as http_build_query urlencode() its result. 91 $u = preg_replace('/\%25(([0-9])+?\%24)*?s/','%$2s',$u); 92 } 93 return $u; 91 94 } 92 95
Note: See TracChangeset
for help on using the changeset viewer.