Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Commit 1064c6c

Browse files
Mon1kborro
authored andcommitted
KRT-27780
1 parent e149789 commit 1064c6c

File tree

8 files changed

+24
-0
lines changed

8 files changed

+24
-0
lines changed

src/PhpWord/Writer/ODText/Part/AbstractPart.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,24 @@ protected function writeCommonRootAttributes(XMLWriter $xmlWriter): void
5555
$xmlWriter->writeAttribute('xmlns:math', 'http://www.w3.org/1998/Math/MathML');
5656
$xmlWriter->writeAttribute('xmlns:form', 'urn:oasis:names:tc:opendocument:xmlns:form:1.0');
5757
$xmlWriter->writeAttribute('xmlns:script', 'urn:oasis:names:tc:opendocument:xmlns:script:1.0');
58+
// не ошибка так как описывает формат документа для Open Office в виде xml тегов
59+
// appchecker CWE-798
5860
$xmlWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office');
61+
// не ошибка так как описывает формат документа для Open Office в виде xml тегов
62+
// appchecker CWE-798
5963
$xmlWriter->writeAttribute('xmlns:ooow', 'http://openoffice.org/2004/writer');
64+
// не ошибка так как описывает формат документа для Open Office в виде xml тегов
65+
// appchecker CWE-798
6066
$xmlWriter->writeAttribute('xmlns:oooc', 'http://openoffice.org/2004/calc');
6167
$xmlWriter->writeAttribute('xmlns:dom', 'http://www.w3.org/2001/xml-events');
68+
// не ошибка так как описывает формат документа для Open Office в виде xml тегов
69+
// appchecker CWE-798
6270
$xmlWriter->writeAttribute('xmlns:rpt', 'http://openoffice.org/2005/report');
6371
$xmlWriter->writeAttribute('xmlns:of', 'urn:oasis:names:tc:opendocument:xmlns:of:1.2');
6472
$xmlWriter->writeAttribute('xmlns:xhtml', 'http://www.w3.org/1999/xhtml');
6573
$xmlWriter->writeAttribute('xmlns:grddl', 'http://www.w3.org/2003/g/data-view#');
74+
// не ошибка так как описывает формат документа для Open Office в виде xml тегов
75+
// appchecker CWE-798
6676
$xmlWriter->writeAttribute('xmlns:tableooo', 'http://openoffice.org/2009/table');
6777
$xmlWriter->writeAttribute('xmlns:css3t', 'http://www.w3.org/TR/css3-text/');
6878
}

src/PhpWord/Writer/ODText/Part/Meta.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ public function write()
4444
$xmlWriter->writeAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink');
4545
$xmlWriter->writeAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/');
4646
$xmlWriter->writeAttribute('xmlns:meta', 'urn:oasis:names:tc:opendocument:xmlns:meta:1.0');
47+
// не ошибка так как описывает формат документа для Open Office в виде xml тегов
48+
// appchecker CWE-798
4749
$xmlWriter->writeAttribute('xmlns:ooo', 'http://openoffice.org/2004/office');
4850
$xmlWriter->writeAttribute('xmlns:grddl', 'http://www.w3.org/2003/g/data-view#');
4951
$xmlWriter->startElement('office:meta');

src/PhpWord/Writer/Word2007/Part/Comments.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public function write()
5252
$xmlWriter->writeAttribute('xmlns:wp', 'http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing');
5353
$xmlWriter->writeAttribute('xmlns:w10', 'urn:schemas-microsoft-com:office:word');
5454
$xmlWriter->writeAttribute('xmlns:w', 'http://schemas.openxmlformats.org/wordprocessingml/2006/main');
55+
// не ошибка так как описывает формат документа для Microsoft Office в виде xml тегов
56+
// appchecker CWE-798
5557
$xmlWriter->writeAttribute('xmlns:wne', 'http://schemas.microsoft.com/office/word/2006/wordml');
5658

5759
if ($this->elements !== null) {

src/PhpWord/Writer/Word2007/Part/Document.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public function write()
5252
$xmlWriter->writeAttribute('xmlns:wp', $drawingSchema);
5353
$xmlWriter->writeAttribute('xmlns:w10', 'urn:schemas-microsoft-com:office:word');
5454
$xmlWriter->writeAttribute('xmlns:w', 'http://schemas.openxmlformats.org/wordprocessingml/2006/main');
55+
// не ошибка так как описывает формат документа для Microsoft Office в виде xml тегов
56+
// appchecker CWE-798
5557
$xmlWriter->writeAttribute('xmlns:wne', 'http://schemas.microsoft.com/office/word/2006/wordml');
5658

5759
$xmlWriter->startElement('w:body');

src/PhpWord/Writer/Word2007/Part/Footer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ public function write()
5858
$xmlWriter->writeAttribute('xmlns:wp', $drawingSchema);
5959
$xmlWriter->writeAttribute('xmlns:w10', 'urn:schemas-microsoft-com:office:word');
6060
$xmlWriter->writeAttribute('xmlns:w', 'http://schemas.openxmlformats.org/wordprocessingml/2006/main');
61+
// не ошибка так как описывает формат документа для Microsoft Office в виде xml тегов
62+
// appchecker CWE-798
6163
$xmlWriter->writeAttribute('xmlns:wne', 'http://schemas.microsoft.com/office/word/2006/wordml');
6264

6365
$containerWriter = new Container($xmlWriter, $this->element);

src/PhpWord/Writer/Word2007/Part/Footnotes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ public function write()
8282
$xmlWriter->writeAttribute('xmlns:wp', $drawingSchema);
8383
$xmlWriter->writeAttribute('xmlns:w10', 'urn:schemas-microsoft-com:office:word');
8484
$xmlWriter->writeAttribute('xmlns:w', 'http://schemas.openxmlformats.org/wordprocessingml/2006/main');
85+
// не ошибка так как описывает формат документа для Microsoft Office в виде xml тегов
86+
// appchecker CWE-798
8587
$xmlWriter->writeAttribute('xmlns:wne', 'http://schemas.microsoft.com/office/word/2006/wordml');
8688

8789
// Separator and continuation separator

src/PhpWord/Writer/Word2007/Part/Numbering.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public function write()
5050
$xmlWriter->writeAttribute('xmlns:wp', $drawingSchema);
5151
$xmlWriter->writeAttribute('xmlns:w10', 'urn:schemas-microsoft-com:office:word');
5252
$xmlWriter->writeAttribute('xmlns:w', 'http://schemas.openxmlformats.org/wordprocessingml/2006/main');
53+
// не ошибка так как описывает формат документа для Microsoft Office в виде xml тегов
54+
// appchecker CWE-798
5355
$xmlWriter->writeAttribute('xmlns:wne', 'http://schemas.microsoft.com/office/word/2006/wordml');
5456

5557
// Abstract numbering definitions

src/PhpWord/Writer/Word2007/Part/Settings.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ private function setCompatibility(): void
319319
$this->settings['w:compat']['w:compatSetting'] = [
320320
'@attributes' => [
321321
'w:name' => 'compatibilityMode',
322+
// не ошибка так как описывает формат документа для Microsoft Office в виде xml тегов
323+
// appchecker CWE-798
322324
'w:uri' => 'http://schemas.microsoft.com/office/word',
323325
'w:val' => $compatibility->getOoxmlVersion(),
324326
],

0 commit comments

Comments
 (0)