Skip to content

Handling disk names containing a space#45

Open
Jaxom99 wants to merge 1 commit intoColinWaddell:masterfrom
Jaxom99:patch-2
Open

Handling disk names containing a space#45
Jaxom99 wants to merge 1 commit intoColinWaddell:masterfrom
Jaxom99:patch-2

Conversation

@Jaxom99
Copy link

@Jaxom99 Jaxom99 commented Dec 14, 2017

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

Handling disk names containing a space ("Hard drive") by replacing the splitting-line tool : explode() -> preg_split().
I'm no regexp expert, so the prosed one will only match names with one space and letters after the space (so as to not match with the size numbers returned by 'df'.
Tested on RPi-2 running Raspbian Jessie with Nginx 1.6.2
@ColinWaddell
Copy link
Owner

ColinWaddell commented Dec 14, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants