"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scripts/test/Frontend/PictureUpload.t" between
otrs-5.0.39.tar.bz2 and otrs-5.0.40.tar.bz2

About: OTRS (formerly "Open Ticket Request System" now "Open Technology – Real Service") is a web-based ticketing systems used for Customer Service, Help Desk, IT Service Management. 5.x release ("Community Edition").

PictureUpload.t  (otrs-5.0.39.tar.bz2):PictureUpload.t  (otrs-5.0.40.tar.bz2)
skipping to change at line 149 skipping to change at line 149
$Response = $UserAgent->get("${BaseURL}Action=PictureUpload;FormID=$FormID;Conte ntID=$ContentID"); $Response = $UserAgent->get("${BaseURL}Action=PictureUpload;FormID=$FormID;Conte ntID=$ContentID");
$Self->True( $Self->True(
index( index(
$Response->content(), $Response->content(),
q|CKEDITOR.tools.callFunction(0, '', "The file is not an image that can be shown inline!"| q|CKEDITOR.tools.callFunction(0, '', "The file is not an image that can be shown inline!"|
) > -1, ) > -1,
'Response check for CKEditor error handler', 'Response check for CKEditor error handler',
); );
## nofilter(TidyAll::Plugin::OTRS::Whitespace::Tabs)
my $ContentSVG = <<'EOF',
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd">
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
<polygon id="triangle" points="0,0 0,50 50,0" fill="#009900" stroke="#004400"/>
<script type="text/javascript">alert(document.domain);</script></svg>
EOF
;
my $EscapedContentSVG = <<'EOF',
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1
.1/DTD/svg11.dtd">
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg">
<polygon id="triangle" points="0,0 0,50 50,0" fill="#009900" stroke="#004400"/>
</svg>
EOF
;
# Upload svg image with png file and script element.
$Response = $UserAgent->post(
$BaseURL,
Content_Type => 'form-data',
Content => {
Action => 'PictureUpload',
FormID => $FormID,
upload => [
undef, 'index4.png',
'Content-Type' => 'image/svg+xml',
Content => $ContentSVG,
],
}
);
$CheckUpload->(
Successful => 1,
Content => $EscapedContentSVG,
);
1; 1;
 End of changes. 1 change blocks. 
0 lines changed or deleted 43 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)