---
title: "Django 1.1.2 versionsinformation"
version: 6.1
locale: sv
source: https://docs.djangoproject.com/sv/6.1/releases/1.1.2/
canonical: https://djangodocs.dev/sv/6.1/releases/1.1.2/
---
# Django 1.1.2 versionsinformation

Välkommen till Django 1.1.2!

Detta är den andra ”bugfix”-releasen i Django 1.1-serien, som förbättrar stabiliteten och prestandan i Django 1.1-kodbasen.

Django 1.1.2 bibehåller bakåtkompatibilitet med Django 1.1.0, men innehåller ett antal korrigeringar och andra förbättringar. Django 1.1.2 är en rekommenderad uppgradering för all utveckling eller distribution som för närvarande använder eller riktar in sig på Django 1.1.

För fullständig information om nya funktioner, inkompatibilitet bakåt och utdaterade funktioner i 1.1-grenen, se [Django 1.1 versionsinformation](/sv/6.1/releases/1.1/).

## Bakåtkompatibla ändringar i 1.1.2

### Statuskod för testkörarens utgång

The exit status code of the test runners (`tests/runtests.py` and `python
manage.py test`) no longer represents the number of failed tests, since a
failure of 256 or more tests resulted in a wrong exit status code. The exit
status code for the test runner is now 0 for success (no failing tests) and 1
for any number of test failures. If needed, the number of test failures can be
found at the end of the test runner’s output.

### Kodning av cookie

To fix bugs with cookies in Internet Explorer, Safari, and possibly other
browsers, our encoding of cookie values was changed so that the characters
comma and semi-colon are treated as non-safe characters, and are therefore
encoded as `\054` and `\073` respectively. This could produce backwards
incompatibilities, especially if you are storing comma or semi-colon in
cookies and have JavaScript code that parses and manipulates cookie values
client-side.

## En ny funktion

Vanligtvis innehåller en point release inga nya funktioner, men i fallet med Django 1.1.2 har vi gjort ett undantag från denna regel. Django 1.2 (nästa stora version av Django) kommer att innehålla en funktion som förbättrar skyddet mot CSRF-attacker (Cross-Site Request Forgery). Denna funktion kräver användning av en ny [`csrf_token`](/sv/6.1/ref/templates/builtins/#std-templatetag-csrf_token) malltagg i alla formulär som Django renderar.

För att göra det enklare att stödja både 1.1.X- och 1.2.X-versionerna av Django med samma mallar har vi beslutat att införa [`csrf_token`](/sv/6.1/ref/templates/builtins/#std-templatetag-csrf_token)-malltaggen i 1.1.X-grenen. I 1.1.X-grenen gör [`csrf_token`](/sv/6.1/ref/templates/builtins/#std-templatetag-csrf_token) ingenting - det har ingen effekt på mallar eller formulärbehandling. Det innebär dock att samma mall kommer att fungera med Django 1.2.
