markInputBasedOn method

JinjaString markInputBasedOn(
  1. JinjaString other
)

Mark this string as input if other has ALL parts as input. This is used for operations like split where the resulting parts should inherit the "taint" of the original string if the original was fully tainted.

Implementation

JinjaString markInputBasedOn(JinjaString other) {
  if (other.allPartsAreInput) {
    return markInput();
  }
  return this;
}