my webdav server (using [dav-server](https://crates.io/crates/dav-server/)) returns
```xml
<D:collection></D:collection>
```
instead of
```xml
<D:collection/>
```
Previously rotation mode options were gated behind FileManager.instance,
which becomes nil when the Reader is opened (ReaderUI:doShowReader
explicitly closes the FileManager). This made manual rotation
inaccessible from the Reader view on all platforms, especially
noticeable on Android where hasGSensor is false and the menu otherwise
offers no way to change orientation.
Original reasoning from <https://github.com/koreader/koreader/pull/6309>:
> Before this PR we were always setting a screenmode and the checking what rotation to use, now we set rotations, and let koreader figure out what is the screenmode. (besides for the FM, which does not support landscape) now the only thing setting a screenmode is the FM.
>
> This separates the rotation (physical) from the screenmode (portrait/landscape or H>W/W>H). I did not get into why the FM has to be portrait but if someone fixes that then the rotation and screenmode will be totally independent.
Gives Hotkeys the ability to configure gamepads, at least to a degree. Advanced users might wish to use a shoulder button or a trigger as a modifier like in Tony Hawk or Devil May Cry. But in that case I suggest they might be advanced enough to make a follow-up PR as well. It's out of scope for this one anyway.
Things like deadzones might prefer to be independently configurable in the future, but then again it's a reader app.
Depends on <https://github.com/koreader/koreader-base/pull/2376>.
A PDF-controlled URL flowed into `os.execute` via single-quote
concatenation in `Device:openLink`. An embedded `'` in the URL closed
the intended quoting and the remainder was interpreted by the shell,
giving arbitrary command execution as the KOReader user once the user
chose "Open in browser" on an external link.
The same pattern existed in `doExternalDictLookup`'s command path:
the dictionary text was concatenated directly into the shell command
and `cleanSelection` does not remove shell metacharacters.
Use `util.shell_escape` at both sinks. The helper has been in the
codebase for years (used e.g. in `util.lua:928` for `df -kP`) and
quotes args with single quotes plus `'\''` escaping.
Fixes#15490
AppLoad's quirk of removing framebuffer when nothing's holding framebuffer even though app is running prevented crash handling and restarting KOReader to fail, so introduce a keep-alive process (which was LLM assisted, and it's very cursed, but it works!) to work around this issue.
It wasn't a problem for shimmed version since shim loaded even for sh handling shell script too, which acted as keep-alive.
for pdf/djvu files the crosshairs continues to work freely as before. This commit introduces primaraly the methods _getAdjacentLineWordRolling and _getAdjacentWordRolling which handle finding the next word vertically and horizontally respectviely. We now handle hyphenated words much more predictably in _isSplitHyphenatedWord as we no longer require using heuristics.