Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Notifications come from the email address you sent to so you can easi…

…ly reply. Better regex for parsing values to require at least one number
  • Loading branch information...
commit a583277fae64cf697ce377ceae68d55539d7c6a6 1 parent b1785a6
@aaronpk authored
Showing with 3 additions and 4 deletions.
  1. +2 −3 include/Model/Graph.php
  2. +1 −1  scripts/email-incoming.php
View
5 include/Model/Graph.php
@@ -259,8 +259,7 @@ public function insertNumericDataFromString($string, $millistamp=FALSE) {
if(trim($line) == '')
continue;
- if(preg_match_all('/(?:([a-z0-9]+):)?([0-9\.]+)/', $line, $matches)) {
-
+ if(preg_match_all('/(?:([a-z0-9]+):)?([0-9]+(?:\.[0-9]+)?)/i', $line, $matches)) {
if($this->_graphSeries == FALSE) {
$this->_graphSeries = $this->getSeries(TRUE);
}
@@ -291,7 +290,7 @@ public function insertNumericDataFromString($string, $millistamp=FALSE) {
if($series > $largestSeriesNumber)
$largestSeriesNumber = $series;
- echo 'Inserting: ' . $val . "\n";
+ # echo 'Inserting: ' . $val . "<br />\n";
if(substr_count($val, '.') == 1) {
// floating point
View
2  scripts/email-incoming.php
@@ -88,7 +88,7 @@
$mailer->SetFrom($from);
$mailer->ClearReplyTos();
- $mailer->AddReplyTo('info@' . HOSTNAME);
+ $mailer->AddReplyTo($from);
$mailer->AddAddress($user->email);

0 comments on commit a583277

Please sign in to comment.
Something went wrong with that request. Please try again.