aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
Commit message (Collapse)AuthorAgeLines
* Fix CSRF issue with new login during process.Matthew Somerville2016-07-06-0/+3
| | | | | | If you had no session cookie, started reporting a problem, logged in through that process, you would then get a CSRF error as the token had been created before the session was.
* Improve CSRF tokens and add to more forms.Matthew Somerville2016-07-06-58/+74
|
* Improve auth flow taken when return key used.Matthew Somerville2016-07-06-5/+6
|
* Redirect correctly if filter used sans JavaScript.Matthew Somerville2016-07-06-2/+5
| | | | | It was being treated as a new report and showing errors, rather than showing you the same page with updated filters. Fixes #1422.
* Strip line end spaces in emails.Matthew Somerville2016-07-06-0/+1
|
* Stop using Text::Wrap to wrap email bodies.Matthew Somerville2016-07-06-8/+0
| | | | | | | | | | | If we don't do this, the default quoted-printable encoding will make sure the lines are physically wrapped anyway. format=flowed could be an alternative, but I think "=" acting as a quasi-hyphen is somewhat nicer than every line ending with "=20". A better solution could be quoted-printable doing soft wrapping only at word breaks, making each line be readable though end with a " =", but that didn't seem worth the effort involved.
* Handle reports/updates by logged in abuse entries.Matthew Somerville2016-05-27-0/+10
|
* Merge branch '1410-email-template'Matthew Somerville2016-05-25-103/+79
|\
| * Use only one templating system for emails.Matthew Somerville2016-05-25-103/+79
| | | | | | | | | | | | | | Historically, emails sent offline (alerts, questionnaires, etc) used a different templating system from those sent by the website (e.g. login emails), though the newer system was also being used for the site name and signature of offline emails.
* | Merge branch '694-summary-string-template-tidy'Matthew Somerville2016-05-25-30/+0
|\ \ | |/ |/|
| * Move processed_summary_string function to templateMatthew Somerville2016-05-24-30/+0
| | | | | | | | Fixes #694.
* | Warnfix if belongs_to_body called with no string.Matthew Somerville2016-05-24-2/+3
|/
* Add search boxes to admin index page, move stats.Matthew Somerville2016-05-20-28/+41
| | | | Move most index page statistics to their own pages.
* Merge branch '1286-catching-gaze'Matthew Somerville2016-05-18-25/+40
|\
| * Fallback if request to Gaze fails.Matthew Somerville2016-05-18-25/+40
| | | | | | | | Fixes #1286.
* | Improve in-place moderation UIZarino Zappia2016-05-18-0/+11
|/ | | | | | | | | | | This rearranges the moderation UI into logical chunks, and improves the 'revert to original' checkboxes by: - hiding them unless there's some original text to revert to - displaying the text that will be reverted to in the appropriate input fields when checked. Part of mysociety/FixMyStreet-Commercial#731
* Remove specific files rather than glob.Matthew Somerville2016-05-18-4/+15
| | | | This should improve performance when there are a lot of cached photos.
* Don't allow photo IDs to be prepended with 0s.Matthew Somerville2016-05-18-1/+1
|
* Fix removal of cached update photos.Matthew Somerville2016-05-18-4/+6
| | | | | It was possible that rotating an update photo did not remove its cached copy.
* Merge remote-tracking branch 'mysociety/1207-update-email-to-existing'Matthew Somerville2016-05-06-3/+15
|\
| * Allow change of email in admin to existing entry.Matthew Somerville2016-04-27-3/+15
| |
* | Switch external jhead call to use IPC::Open3.Matthew Somerville2016-05-03-1/+8
| |
* | Merge remote-tracking branch 'origin/open311-quieten-issues'Matthew Somerville2016-05-03-7/+2
|\ \
| * | Store Open311 error in report on failure.Matthew Somerville2016-04-27-3/+2
| | | | | | | | | | | | | | | | | | It will still output via cron on the first failure. However, reduce the verbosity of a couple of SendReport modules which are reporting failure every time.
| * | [UK] Remove West Berkshire temporary fix.Matthew Somerville2016-04-27-4/+0
| |/
* / Skip fetched updates if they're out of date range.Matthew Somerville2016-04-26-2/+7
|/ | | | | Even when we ask for a specific range of dates, we sometimes get given more in the response.
* Merge branch '1383-remove-dead-projects'Matthew Somerville2016-04-22-948/+83
|\
| * Remove final web/fixmystreet templates.Matthew Somerville2016-04-20-5/+2
| | | | | | | | And associated, e.g. nothing references fixmystreet-old-box.js any more.
| * Remove some unused cobrands.Matthew Somerville2016-04-20-943/+81
| |
* | Don't warn on bad photo hashes.Matthew Somerville2016-04-22-2/+2
| |
* | Send unresponsive body data per category to app.Matthew Somerville2016-04-22-2/+11
| | | | | | | | | | | | The app doesn't currently use the unresponsive body data returned via /report/new/ajax, so make sure it's returned via the category look up it does make.
* | Merge remote-tracking branch 'origin/twitter-login'Matthew Somerville2016-04-22-16/+99
|\ \
| * | Add Twitter social login.Matthew Somerville2016-04-08-16/+99
| | |
* | | Ignore empty entries in the image upload IDs.Matthew Somerville2016-04-20-1/+1
| | |
* | | If admin removes all images, set db field to null.Matthew Somerville2016-04-20-2/+4
| |/ |/|
* | Merge remote-tracking branch 'origin/1302-support-pngs'Matthew Somerville2016-04-20-66/+82
|\ \
| * | Add PNG image support.Matthew Somerville2016-04-08-55/+78
| | | | | | | | | | | | | | | | | | | | | Store image type along with hash in photo column, and use that when outputting images / generating URLs. Make sure all public photo URL generation goes through appropriate functions, and change temp URLs so the filename can be output directly from the list.
| * | Prevent dev sites auto-creating session.Matthew Somerville2016-04-06-11/+4
| |/ | | | | | | | | We check for a session's existence before looking in it, as looking in it first would auto create a session.
* | Merge branch '574-spot-slash-in-body-slug'Matthew Somerville2016-04-20-20/+3
|\ \
| * | Use better link to reports on admin body page.Matthew Somerville2016-04-20-18/+0
| | | | | | | | | | | | Remove unused body/area ID URL code.
| * | Cope with a '/' in body name in body slug.Matthew Somerville2016-04-20-2/+3
| |/ | | | | | | Fixes #574.
* / Display used send method in debug line.Matthew Somerville2016-04-19-1/+1
|/ | | | | This may be a contact send method if devolved, or the default if none set on the body.
* Show right body user form value for fixed reports.Matthew Somerville2016-03-31-2/+15
| | | | | The form element contains 'fixed', so we need to strip the user/council part of the actual state. Fixes #1369.
* Merge remote-tracking branch 'mysociety/refactor-email'Matthew Somerville2016-03-31-69/+161
|\
| * Refactor email handling to use Email::MIME alone.Matthew Somerville2016-03-30-69/+161
| |
* | [fixmystreet.com] Move country lookup client side.Matthew Somerville2016-03-31-28/+0
| | | | | | | | | | There's no need for the IP->country lookup, only used in JavaScript to display a banner, to require a call to the FixMyStreet server.
* | [Zurich] Use protocol relative map tiles.Matthew Somerville2016-03-30-1/+1
| |
* | Merge branch '1348-header-nesting-issue'Matthew Somerville2016-03-30-1/+1
|\ \
| * | Switch list item heading from h4 to h3.Matthew Somerville2016-03-30-1/+1
| | | | | | | | | | | | This stops the front page header nesting skipping a level.
* | | [Angus, Greenwich] Add base_url to resolve mixed content issueDave Arter2016-03-30-0/+10
| | | | | | | | | | | | | | | | | | Some img tags were using http://[cobrand].fixmystreet.com/ URLs when their including page was served over HTTPS, causing mixed content warnings on IE.