From e9f74cdc0fb82f39ff232934cb97f4f85b885eb8 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Wed, 10 Aug 2005 16:43:15 +0000 Subject: [PATCH] Changed warn to fatal to prevent db corruption --- docs/changelog/6.x.x.txt | 4 +++- lib/WebGUI/International.pm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index 814aa8533..0d583cf76 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -63,7 +63,9 @@ time ago, but the documentation was never updated until now. - Created a new pluggable form control backend. See migration.txt for details. - + - Changed warning generated when a languagepack misses the makeUrlCompliant + procedure to a fatal error, since this will lead to a false url in the asset + table. 6.6.5 - fix [ 1243131 ] In 6.6.4 you cannot upload anything (ebruni/mwilson) diff --git a/lib/WebGUI/International.pm b/lib/WebGUI/International.pm index 7512e1af3..01f057600 100644 --- a/lib/WebGUI/International.pm +++ b/lib/WebGUI/International.pm @@ -184,7 +184,7 @@ sub makeUrlCompliant { WebGUI::ErrorHandler::warn($cmd." failed to compile because ".$@) if ($@); $cmd = $cmd."::makeUrlCompliant"; my $output = eval{&$cmd($url)}; - WebGUI::ErrorHandler::warn("Couldn't execute ".$cmd." because ".$@) if ($@); + WebGUI::ErrorHandler::fatal("Couldn't execute ".$cmd." because ".$@.". Maybe your languagepack misses the makeUrlCompliant method?") if ($@); return $output; }