Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Validates starting offset

AuthorDaveJarvis <email>
Date2023-11-11 14:22:04 GMT-0800
Commit16dd4d5ac72d4271ed33a7e599ce7cdd9dd24caa
Parent32d4eef
Delta1 line added, 1 line removed
www/downloads/counter.php
// Multiple ranges could be specified, but only serve the first range.
- $seek_start = $matches[ 1 ] + 0;
+ $seek_start = isset( $matches[ 1 ] ) ? $matches[ 1 ] + 0 : 0;
$seek_end = isset( $matches[ 2 ] ) ? $matches[ 2 ] + 0 : $size - 1;