The date format for the expires HTTP header generated by DispatcherHelper dependent on the locale of the server on which CCM runs. This caused the creation of an invalid expires header on systems with an locale other than english.
git-svn-id: https://svn.libreccm.org/ccm/trunk@4380 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
f2403b0ce6
commit
a7a1b39e55
|
|
@ -38,6 +38,7 @@ import java.util.Enumeration;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.TimeZone;
|
import java.util.TimeZone;
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
import javax.mail.MessagingException;
|
import javax.mail.MessagingException;
|
||||||
import javax.servlet.RequestDispatcher;
|
import javax.servlet.RequestDispatcher;
|
||||||
|
|
@ -78,7 +79,8 @@ public final class DispatcherHelper implements DispatcherConstants {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
rfc1123_formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z");
|
rfc1123_formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z",
|
||||||
|
Locale.ROOT);
|
||||||
rfc1123_formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
|
rfc1123_formatter.setTimeZone(TimeZone.getTimeZone("GMT"));
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue