mirror of
https://github.com/filp/whoops.git
synced 2026-09-17 05:06:22 +00:00
Url-encode file & line data in editor uri
This commit is contained in:
@@ -225,8 +225,8 @@ class PrettyPageHandler extends Handler
|
||||
);
|
||||
}
|
||||
|
||||
$editor = str_replace("%line", $line, $editor);
|
||||
$editor = str_replace("%file", $filePath, $editor);
|
||||
$editor = str_replace("%line", rawurlencode($line), $editor);
|
||||
$editor = str_replace("%file", rawurlencode($filePath), $editor);
|
||||
|
||||
return $editor;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user