diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2022-09-28 12:32:56 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2022-09-28 12:32:56 +0000 |
| commit | 9e13d2f5fa4726b54efe8ad046d0b53aadb543bf (patch) | |
| tree | b8fc0583b685de64575feca2cd4efe2663586d74 /vendor | |
| parent | 0d56653e17a283d918c6e4cb41468de1990e0331 (diff) | |
fix for BIESt #1104
Merge request studip/studip!674
Diffstat (limited to 'vendor')
| -rw-r--r-- | vendor/write_excel/OLEwriter.php | 4 | ||||
| -rw-r--r-- | vendor/write_excel/Parser.php | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/vendor/write_excel/OLEwriter.php b/vendor/write_excel/OLEwriter.php index 17bdfd6..b82f3aa 100644 --- a/vendor/write_excel/OLEwriter.php +++ b/vendor/write_excel/OLEwriter.php @@ -347,7 +347,7 @@ class OLEwriter for($i=0;$i<strlen($name);$i++)
{
// Simulate a Unicode string
- $rawname .= pack("H*",dechex(ord($name{$i}))).pack("C",0);
+ $rawname .= pack("H*",dechex(ord($name[$i]))).pack("C",0);
}
$length = strlen($name) * 2;
}
@@ -411,4 +411,4 @@ class OLEwriter }
}
}
-?>
\ No newline at end of file +?>
diff --git a/vendor/write_excel/Parser.php b/vendor/write_excel/Parser.php index 1b7030e..1646f74 100644 --- a/vendor/write_excel/Parser.php +++ b/vendor/write_excel/Parser.php @@ -642,7 +642,7 @@ class Parser $col = 0; for($i=0; $i < strlen($col_ref); $i++) { - $col += (ord($col_ref{$i}) - ord('A') + 1) * pow(26, $expn); + $col += (ord($col_ref[$i]) - ord('A') + 1) * pow(26, $expn); $expn--; } @@ -662,30 +662,30 @@ class Parser // eat up white spaces if($i < strlen($this->_formula)) { - while($this->_formula{$i} == " ") + while($this->_formula[$i] == " ") { $i++; } if($i < strlen($this->_formula) - 1) { - $this->_lookahead = $this->_formula{$i+1}; + $this->_lookahead = $this->_formula[$i+1]; } $token = ""; } while($i < strlen($this->_formula)) { - $token .= $this->_formula{$i}; + $token .= $this->_formula[$i]; if($this->_match($token) != '') { if($i < strlen($this->_formula) - 1) { - $this->_lookahead = $this->_formula{$i+1}; + $this->_lookahead = $this->_formula[$i+1]; } $this->_current_char = $i + 1; $this->_current_token = $token; return(1); } - $this->_lookahead = $this->_formula{$i+2}; + $this->_lookahead = $this->_formula[$i+2]; $i++; } //die("Lexical error ".$this->_current_char); @@ -765,7 +765,7 @@ class Parser { $this->_current_char = 0; $this->_formula = $formula; - $this->_lookahead = $formula{1}; + $this->_lookahead = $formula[1]; $this->_advance(); $this->_parse_tree = $this->_expression(); } |
