Skip to content
Snippets Groups Projects
Commit d4c9cbd2 authored by catch's avatar catch
Browse files

Issue #3521327 by avpaderno: The insecure examples code does not include delimiters for strings

(cherry picked from commit b4332a51)
parent a42a6de2
No related branches found
No related tags found
6 merge requests!12618Issue #3522970 by longwave, smustgrave: Remove unused BrowserTestBase::$originalContainer,!12473Issue #3521639 by mstrelan, smustgrave for 11.2,!12462Issue #3523109 by ghost of drupal past, donquixote, nicxvan, dww, larowlan,...,!12357Issue #3529639 by mradcliffe, smustgrave, solomon.yifru: replacing a depricated css,!8811Issue #3129179: Provide some way to rebuild the persistent bundle field map,!7916Remove taxonomy dependency on node module - 11.x
Pipeline #509200 passed with warnings
Pipeline: drupal

#509213

    Pipeline: drupal

    #509210

      Pipeline: drupal

      #509205

        ......@@ -124,10 +124,10 @@ public function jsonSerialize(): string {
        * Insecure examples.
        * @code
        * // The following are using the @ placeholder inside an HTML tag.
        * $this->placeholderFormat('<@foo>text</@foo>, ['@foo' => $some_variable]);
        * $this->placeholderFormat('<a @foo>link text</a>, ['@foo' => $some_variable]);
        * $this->placeholderFormat('<a href="@foo">link text</a>, ['@foo' => $some_variable]);
        * $this->placeholderFormat('<a title="@foo">link text</a>, ['@foo' => $some_variable]);
        * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]);
        * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]);
        * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]);
        * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]);
        * // Implicitly convert an object to a string, which is not sanitized.
        * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]);
        * @endcode
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment