http://trac.tiddlywiki.org/changeset/12283
MartinBudden
2010-07-20 07:03:58 -0700 (Tue, 20 Jul 2010)
48
Ticket #1143
TiddlyWiki creates invalid cookies
---------------
U Trunk/core/js/Lingo.js
U Trunk/core/js/Options.js
---------------
Modified: Trunk/core/js/Lingo.js
===================================================================
--- Trunk/core/js/Lingo.js 2010-07-20 13:12:56 UTC (rev 12282)
+++ Trunk/core/js/Lingo.js 2010-07-20 14:03:58 UTC (rev 12283)
@@ -77,7 +77,8 @@
invalidFieldName: "Invalid field name %0",
fieldCannotBeChanged: "Field '%0' cannot be changed",
loadingMissingTiddler: "Attempting to retrieve the tiddler '%0' from
the '%1' server at:\n\n'%2' in the workspace '%3'",
- upgradeDone: "The upgrade to version %0 is now complete\n\nClick 'OK'
to reload the newly upgraded TiddlyWiki"});
+ upgradeDone: "The upgrade to version %0 is now complete\n\nClick 'OK'
to reload the newly upgraded TiddlyWiki",
+ invalidCookie: "Invalid cookie '%0'"});
merge(config.messages.messageClose,{
text: "close",
Modified: Trunk/core/js/Options.js
===================================================================
--- Trunk/core/js/Options.js 2010-07-20 13:12:56 UTC (rev 12282)
+++ Trunk/core/js/Options.js 2010-07-20 14:03:58 UTC (rev 12283)
@@ -35,6 +35,10 @@
{
if(safeMode)
return;
+ if(name.match(/[()\s]/g, "_")) {
+ alert(config.messages.invalidCookie.format([name]));
+ return;
+ }
var c = name + "=";
var optType = name.substr(0,3);
var handlers = config.optionHandlers;
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywikidev?hl=en.