Skip to content

Commit

Permalink
Add testcase and changelog entry for bcit-ci#5278
Browse files Browse the repository at this point in the history
  • Loading branch information
narfbg committed Sep 29, 2017
1 parent 00b050a commit 6b08edf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/codeigniter/helpers/url_helper_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public function test_auto_link_url()
'<br />www.google.com' => '<br /><a href="http://www.google.com">www.google.com</a>',
'Download CodeIgniter at www.codeigniter.com. Period test.' => 'Download CodeIgniter at <a href="http://www.codeigniter.com">www.codeigniter.com</a>. Period test.',
'Download CodeIgniter at www.codeigniter.com, comma test' => 'Download CodeIgniter at <a href="http://www.codeigniter.com">www.codeigniter.com</a>, comma test',
'This one: ://codeigniter.com must not break this one: http://codeigniter.com' => 'This one: <a href="://codeigniter.com">://codeigniter.com</a> must not break this one: <a href="http://codeigniter.com">http://codeigniter.com</a>'
'This one: ://codeigniter.com must not break this one: http://codeigniter.com' => 'This one: <a href="://codeigniter.com">://codeigniter.com</a> must not break this one: <a href="http://codeigniter.com">http://codeigniter.com</a>',
'Trailing slash: https://codeigniter.com/ fubar' => 'Trailing slash: <a href="https://codeigniter.com/">https://codeigniter.com/</a> fubar'
);

foreach ($strings as $in => $out)
Expand All @@ -76,4 +77,4 @@ public function test_pull_675()
}
}

}
}
1 change: 1 addition & 0 deletions user_guide_src/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Bug fixes for 3.1.7

- Fixed a regression (#5276) - :doc:`Database Utilities <database/utilities>` method ``backup()`` generated incorrect ``INSERT`` statements with the 'mysqli' driver.
- Fixed a regression where :doc:`Database Results <database/results>` method ``field_data()`` returned incorrect type names.
- Fixed a bug (#5278) - :doc:`URL Helper <helpers/url_helper>` function :php:func:`auto_link()` didn't detect trailing slashes in URLs.

Version 3.1.6
=============
Expand Down

0 comments on commit 6b08edf

Please sign in to comment.