Ensure <href> elements are urldecoded in the multiget report.

This commit is contained in:
Andrew McMillan 2009-09-02 21:36:15 +12:00
parent c9108c903e
commit b824f06a92

View File

@ -41,7 +41,7 @@ foreach( $mg_hrefs AS $k => $v ) {
* anything up to the matching request->path (which will include any http...) and then
* put the $request->path back on.
*/
$href = $request->path . preg_replace( "#^.*$request->path#", '', $v->GetContent() );
$href = $request->path . preg_replace( "#^.*$request->path#", '', rawurldecode($v->GetContent()) );
dbg_error_log("REPORT", "Reporting on href '%s'", $href );
$href_in .= ($href_in == '' ? '' : ', ');
$href_in .= qpg($href);