Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Handle non-UTF8 encoding in ruby 1.9 and aboveadd-widget-hotfixed | Louise Crow | 2015-06-25 | -5/+56 |
| | ||||
* | Use BASH_SOURCE to return the script path. | Louise Crow | 2015-06-23 | -2/+2 |
| | | | | | It is reliable in the case where the script is sourced from another script. | |||
* | Remove debug line | Louise Crow | 2015-06-04 | -1/+0 |
| | ||||
* | Make sure spelling corrections are encoded as UTF-8 | Louise Crow | 2015-06-04 | -1/+108 |
| | ||||
* | Fix encoding issue with searching for macrons | Caleb | 2015-06-04 | -35/+48 |
| | | | | Correct indentation to be consistent | |||
* | Address#to_s changes the input passed to it - dup before calling. | Louise Crow | 2015-06-04 | -3/+165 |
| | | | | Otherwise UTF-8 encoded strings will be returned as ASCII-8BIT. | |||
* | Handle unparsed email contents as binary. | Louise Crow | 2015-06-04 | -29/+62 |
| | | | | | | | | | | | I think I was wrong in a83b379fd2d676172855825d0592937b234371e2 in assuming that all email gets properly encoded for transfer. Looking at the mail gem load method https://github.com/mikel/mail/blob/b159e0a542962fdd5e292a48cfffa560d7cf412e/lib/mail/mail.rb#L175a, it reads raw email content from a file in binary mode. So this commit makes both reading and writing the raw_email a binary mode operation and adds a data_as_text method for displaying the data in the admin interface that coerces it to valid utf-8. | |||
* | Use a relative path in call to pdftohtml. | Louise Crow | 2015-06-04 | -2/+2 |
| | | | | | | | | pdftohtml will use the file path as the basis for generating the image links in the generated HTML, so we want them to be relative, not absolute. Ruby 1.9 tempfile.path will generate an absolute path when given the current directory as the tmpdir, whilst 2.0 and 1.8 will use a relative one. | |||
* | Force the encoding of values returned from YAML. | Louise Crow | 2015-05-08 | -3/+27 |
| | | | | | | | | | This is a workaround for an issue where YAML in ruby 1.8 tags UTF-8 heavy strings as binary, resulting in them being retrieved under 1.9 as ASCII-8BIT which can't be concatenated with UTF-8. Described as "Deep deep YAML oddness" in https://www.zendesk.com/blog/upgrade-the-road-to-1-9/. | |||
* | Make the namespace for memcached dependent on ruby version. | Louise Crow | 2015-05-08 | -1/+2 |
| | | | | Items cached in 1.8 can't safely be retrieved in 1.9 | |||
* | Set binary mode to false in call to pdftohtml | Louise Crow | 2015-05-07 | -4/+16 |
| | | | | | We want the HTML to be encoding in the default encoding so that it can be combined with other strings. | |||
* | Sanitize the blog contents | Louise Crow | 2014-12-22 | -3/+15 |
| | ||||
* | Sanitize the contents of HTML attachments before display | Louise Crow | 2014-12-22 | -0/+39 |
| | ||||
* | Fix unvalidated redirects | Gareth Rees | 2014-12-22 | -3/+3 |
| | ||||
* | Don't comment out example configuration | Gareth Rees | 2014-12-22 | -6/+16 |
| | | | | Breaks the mySociety internal deployment tooling. | |||
* | Show "votes" along with tracks in widget | Jody McIntyre | 2014-11-17 | -1/+1 |
| | ||||
* | Add controller for non-logged in "voting" | Jody McIntyre | 2014-11-17 | -6/+23 |
| | ||||
* | Send widget_vote cookie when user not logged in | Jody McIntyre | 2014-11-17 | -0/+4 |
| | ||||
* | Add model to track "votes" for a request | Jody McIntyre | 2014-11-17 | -0/+19 |
| | ||||
* | Don't open the request in the widget iframe | Jody McIntyre | 2014-11-17 | -1/+1 |
| | ||||
* | Center count text | Jody McIntyre | 2014-11-17 | -0/+2 |
| | ||||
* | Add link to widget | Jody McIntyre | 2014-11-17 | -1/+5 |
| | ||||
* | Add widget for info requests | Jody McIntyre | 2014-11-17 | -0/+212 |
| | ||||
* | Upgrade to Rails 3.2.210.19.0.10hotfix/0.19.0.10 | Louise Crow | 2014-11-17 | -26/+26 |
| | | | | Provides fix for CVE-2014-7829. | |||
* | Comment out spec which sends an invalid utf-8 param.0.19.0.9hotfix/0.19.0.9 | Louise Crow | 2014-10-31 | -6/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | The original error `ActionView::Template::Error` that this spec was written to represent (#1406) occurred under ruby 1.8 when the decoded non-utf-8 string was used in the locale switcher on the 'not found' error page to generate a url for the alternative locales. Under Ruby >= 1.9, the error thrown in that situation is an `invalid byte sequence in UTF-8` error, thrown in the same place - the locale switcher. However, no error seems to be thrown when the same param is used in a request in production. The upgrade to Rails 3.2.20 causes `String.split` to be called on the request path in `actionpack/lib/action_dispatch/middleware/static.rb` in order to check for attempts to access files outside the `public` directory. This means that under Ruby >= 1.9, an `invalid byte sequence in UTF-8` error will be thrown there in running this spec. I think a possible solution is to use the `rack-utf8_sanitizer` gem to provide middleware to strip invalid utf-8 from request URIs and headers before they're processed by Rails, but it's currently unclear whether that would have any undesirable side-effects. | |||
* | Upgrade to Rails 3.2.20 - fixes CVE-2014-7818 | Louise Crow | 2014-10-31 | -26/+26 |
| | | | | Arbitrary file existence disclosure in Action Pack | |||
* | Results of running 'bundle update rails' | Louise Crow | 2014-10-31 | -3/+3 |
| | ||||
* | Latest translations from Transifex0.19.0.8hotfix/0.19.0.8 | Louise Crow | 2014-10-27 | -12/+3876 |
| | ||||
* | Latest translations from transifex.0.19.0.7hotfix/0.19.0.7 | Louise Crow | 2014-10-24 | -433/+435 |
| | ||||
* | Merge branch 'hotfix/0.19.0.6'0.19.0.6 | Gareth Rees | 2014-09-24 | -1/+2 |
|\ | ||||
| * | Redirect GET signup to signinhotfix/0.19.0.6 | Gareth Rees | 2014-09-24 | -1/+2 |
|/ | | | | | | | | | | | | | | | After allowing only POST requests to signup in 316b1e: > What I think will happen at least sometimes is that someone will enter > information in the signup form, submit it via a post request, and end > up on the URL /profile/signup, at which point they want to refresh and > start again, at which point they hit the URL in the address bar to do > so. Currently that would mean they get a 404. I wonder about adding > another route match '/profile/sign_up' => 'user#signin', :as => > :signin, :via => :get to handle this case. That would mean that a get > request to profile/signup renders the empty form. > > – https://github.com/mysociety/alaveteli/pull/1850#issuecomment-55387700 | |||
* | Remove translation of interpolated variable.0.19.0.5 | Louise Crow | 2014-09-22 | -10/+10 |
| | ||||
* | Update from Spanish file | Louise Crow | 2014-09-22 | -80/+85 |
| | ||||
* | Latest translations from Transifex0.19.0.4hotfix/0.19.0.4 | Louise Crow | 2014-09-22 | -289/+4423 |
| | ||||
* | Whitelist UserController#signup params0.19.0.3hotfix/0.19.0.3 | Gareth Rees | 2014-09-09 | -1/+15 |
| | | | | Protects from mass-assignment exploit attempts | |||
* | Merge branch 'hotfix/0.19.0.2'0.19.0.2 | Gareth Rees | 2014-09-05 | -2/+4 |
|\ | ||||
| * | Allow RAILS_ENV to be set in sysvinit-thinhotfix/0.19.1hotfix/0.19.0.2 | Gareth Rees | 2014-08-29 | -2/+4 |
| | | | | | | | | Install script on AWS uses development mode by default | |||
* | | Add integration spec.0.19.0.1hotfix/0.19.0.1 | Louise Crow | 2014-09-01 | -0/+31 |
| | | ||||
* | | Return a list of all cache directories for the request | Louise Crow | 2014-09-01 | -8/+18 |
| | | ||||
* | | Use request dirs method. | Louise Crow | 2014-09-01 | -2/+1 |
| | | ||||
* | | Use path relative to Rails root. | Louise Crow | 2014-09-01 | -1/+1 |
| | | ||||
* | | Move method to model to make it more testable, add spec. | Louise Crow | 2014-09-01 | -8/+20 |
|/ | ||||
* | Merge remote-tracking branch 'origin/release/0.19'0.19 | Gareth Rees | 2014-08-28 | -3432/+4064 |
|\ | ||||
| * | Fix translation bug in variable interpolationrelease/0.19 | Louise Crow | 2014-08-28 | -3/+3 |
| | | ||||
| * | Update translations | Gareth Rees | 2014-08-26 | -208/+208 |
| | | ||||
| * | Update translations | Gareth Rees | 2014-08-26 | -6/+6 |
| | | ||||
| * | Add note about HighlightHelper#excerpt backport | Gareth Rees | 2014-08-26 | -0/+10 |
| | | | | | | | | Requires Hash options | |||
| * | Update ALAVETELI_VERSION | Gareth Rees | 2014-08-26 | -1/+1 |
| | | ||||
| * | note commonlib update in changelog | Gareth Rees | 2014-08-26 | -0/+2 |
| | | ||||
| * | Update translations | Gareth Rees | 2014-08-26 | -378/+399 |
| | |