Name

MV_SUBJECT — (partly documented)

SYNOPSIS

DESCRIPTION

The global variable MV_SUBJECT, set before interpolating any special page, is a more secure alternative to the [subject] pseudo-tag.

VARIABLE TYPE

Global variable

EXAMPLES

Example: Reading the value of MV_SUBJECT

Add the following to a test Interchange page:

Subject/title: 

NOTES

AVAILABILITY

MV_SUBJECT is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Page.pm
Line 79 (context shows lines 69-83 in display_special_page():53)

$subject ||= 'unspecified error';

my $noname = $name;
$noname =~ s:^\.\./::;

$page = readfile($noname, $Global::NoAbsolute, 1) || readin($name);

die ::get_locale_message(412, qq{Missing special page "%s" for subject "%s"\n}, $name, $subject)
  unless defined $page;
$page =~ s#\[subject\]#$subject#ig;
$Global::Variable->{MV_SUBJECT} = $subject;
$Vend::PageInit = 0;
interpolate_html($page, 1);
::response();
}

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!