encode commas and single quotes to make the output safe to embed inside of a macro. Added tests to verify that it works correctly. Updated the c_companyName macro to use makeParameterSafe. Added tests to verify that the changed macro works okay. Updated the c_companyName documentation. Added a blurb to the gotchas file to cover the change to the macro.
27 lines
623 B
Perl
27 lines
623 B
Perl
package WebGUI::i18n::English::Macro_c_companyName;
|
|
|
|
our $I18N = {
|
|
|
|
'macroName' => {
|
|
message => q|Company Name|,
|
|
lastUpdated => 1128837978,
|
|
},
|
|
|
|
'company name title' => {
|
|
message => q|Company Name Macro|,
|
|
lastUpdated => 1112374923,
|
|
},
|
|
|
|
'company name body' => {
|
|
message => q|
|
|
<p><b>^c;</b><br />
|
|
The name of your company, specified in the settings by your Administrator.</p>
|
|
|
|
<p>Any commas or quotes in the company name will be translated into HTML encodings so
|
|
that you can always embed this macro inside of other macros.</p>
|
|
|,
|
|
lastUpdated => 1171408777,
|
|
},
|
|
};
|
|
|
|
1;
|