Ticket #1873 (closed defect: fixed)
Ctrl\M in genereated .htacess
| Reported by: | Purodha | Owned by: | aoneil |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.3.0-rc1* |
| Component: | CMS - Installer | Version: | |
| Severity: | medium effort / impact | Keywords: | easy |
| Cc: | Hours: |
Description
The .htaccess file generated under debian GNU/Linux with the cgi version of php 5.2.5 contains several carriage return characters at line ends. While this may be fine for windows, it is usually not for *nix systems. Note: some lines do not have them. They appear as "^M" (without quotes) in my editor, vim. Here is a copy taken from my vim screen when it opened the .htaccess created with silverstripe-v2.1.1 freshly downloaded an hour ago:
### SILVERSTRIPE START ###
RewriteEngine On^M
^M
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$ ^M
^M
Rewrite!Cond %{REQUEST_URI} ^(.*)$^M
RewriteCond %{REQUEST_FILENAME} !-f^M
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###
Change History
Note: See
TracTickets for help on using
tickets.
