Skip to content

Conversation

@iAmShorty
Copy link
Contributor

No description provided.

@TheSerapher
Copy link
Contributor

Should also be done before storing them to DB.

@iAmShorty
Copy link
Contributor Author

doesn't work for uptimerobot api key, because it's a complete string, not divided in separate strings like in monitoring class.

@TheSerapher
Copy link
Contributor

True but preg_replace can just remove all spaces for us :-)

TheSerapher added a commit that referenced this pull request Mar 6, 2014
[FIX] delete whitespaces in uptimerobot api keys
@TheSerapher TheSerapher merged commit eb6454c into MPOS:development Mar 6, 2014
@iAmShorty
Copy link
Contributor Author

sure, but removing all spaces will cut down whitespaces in site title or motd and so on :)

@iAmShorty iAmShorty deleted the uptimerobot-trim-whitespaces branch March 6, 2014 10:45
@TheSerapher
Copy link
Contributor

I meant during storage. Take the string to be stored and remove any spaces from it before a writing into the DB. Not on the page itself.

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