|
@@ 48-50 (lines=3) @@
|
| 45 |
|
$re = '/var richdocuments_([A-z]+) = (.*);/m'; |
| 46 |
|
preg_match_all($re, $contents, $matches, PREG_SET_ORDER, 0); |
| 47 |
|
$result = []; |
| 48 |
|
foreach ($matches as $match) { |
| 49 |
|
$result[$match[1]] = str_replace("'", "", $match[2]); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
$this->fileId = $result['fileId']; |
| 53 |
|
$this->wopiToken = $result['token']; |
|
@@ 76-78 (lines=3) @@
|
| 73 |
|
$re = '/var richdocuments_([A-z]+) = (.*);/m'; |
| 74 |
|
preg_match_all($re, $contents, $matches, PREG_SET_ORDER, 0); |
| 75 |
|
$result = []; |
| 76 |
|
foreach ($matches as $match) { |
| 77 |
|
$result[$match[1]] = str_replace("'", "", $match[2]); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
$this->fileId = $result['fileId']; |
| 81 |
|
$this->wopiToken = $result['token']; |