We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f012cc7 commit fd19d90Copy full SHA for fd19d90
1 file changed
system/CodeIgniter.php
@@ -1031,6 +1031,11 @@ public function storePreviousURL($uri)
1031
return;
1032
}
1033
1034
+ // Ignore non-HTML responses
1035
+ if (strpos($this->response->getHeaderLine('Content-Type'), 'text/html') === false) {
1036
+ return;
1037
+ }
1038
+
1039
// This is mainly needed during testing...
1040
if (is_string($uri)) {
1041
$uri = new URI($uri);
0 commit comments