From 23183276e3f43f9eb0a0c24211f126460ab64411 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sun, 16 May 2010 22:16:18 -0700 Subject: [PATCH] Document change in handling sequences of dashes. --- docs/gotcha.txt | 3 +++ t/Asset/Asset.t | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/gotcha.txt b/docs/gotcha.txt index 165f2c424..e52d689cb 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -11,6 +11,9 @@ save you many hours of grief. -------------------------------------------------------------------- * Starting in WebGUI 7.9.4, the CHI and Cache::FastMmap modules are required. + * Starting in WebGUI 7.9.5, you cannot enter in a URL that is a has more than 2 dashes, + "-", in a row. They will be collapsed down into 1 dash. + 7.9.4 -------------------------------------------------------------------- * Shop and Cart changes diff --git a/t/Asset/Asset.t b/t/Asset/Asset.t index bba4aa4be..e1f560f00 100644 --- a/t/Asset/Asset.t +++ b/t/Asset/Asset.t @@ -370,7 +370,7 @@ $session->setting->set('urlExtension', undef); is($importNode->fixUrl('1234'.'_'x235 . 'abcdefghij'), '1234'.'_'x235 . 'abcdefghij', 'fixUrl leaves long URLs under 250 characters alone'); is($importNode->fixUrl('1234'.'_'x250 . 'abcdefghij'), '1234'.'_'x216, 'fixUrl truncates long URLs over 250 characters to 220 characters'); -is $importNode->fixUrl('---'), '---', '... 3 dashes are legal'; +is $importNode->fixUrl('---'), '-', '... 3 dashes are collapsed down to a single dash'; WebGUI::Test->originalConfig('extrasURL'); WebGUI::Test->originalConfig('uploadsURL');