CurrantPi
CurrantPi copied to clipboard
Handling disk names containing a space
Handling disk names containing a space ("Hard drive") by replacing the splitting-line tool : explode() -> preg_split(). Otherwise the resulting table in HTML has a row mismatch. I'm no regexp expert, so the prosed one will only match names with one space and letters after the space. Things can be improved I suppose...
Tested on RPi-2 running Raspbian Jessie with Nginx 1.6.2
Good catch! I'll be on my Xmas holidays soon so I'll try and sort this out then.
Cheers!
On 14 Dec 2017 11:41 a.m., "Jaxom99" [email protected] wrote:
Handling disk names containing a space ("Hard drive") by replacing the splitting-line tool : explode() -> preg_split(). Otherwise the resulting table in HTML has a row mismatch. I'm no regexp expert, so the prosed one will only match names with one space and letters after the space. Things can be improved I suppose...
Tested on RPi-2 running Raspbian Jessie with Nginx 1.6.2
You can view, comment on, or merge this pull request online at:
https://github.com/ColinWaddell/CurrantPi/pull/45 Commit Summary
- Handling disk names containing a space
File Changes
- M content/storage/StorageData.php https://github.com/ColinWaddell/CurrantPi/pull/45/files#diff-0 (3)
Patch Links:
- https://github.com/ColinWaddell/CurrantPi/pull/45.patch
- https://github.com/ColinWaddell/CurrantPi/pull/45.diff
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ColinWaddell/CurrantPi/pull/45, or mute the thread https://github.com/notifications/unsubscribe-auth/ABw0BXkt7Ng8mej6onp_6jD56ogAPITGks5tAQlOgaJpZM4RB74Z .