summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-06-13 12:07:40 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-06-13 12:07:40 +0200
commit24fca6b40acd77e46ae35a3afd2f5b4901901d71 (patch)
tree643e5bff5bc0426f3033a88be5ecb3b86953ac32
parenta181256cd2bd1b3459ebfe668f86bae11a1ec116 (diff)
Ensure that specified ports are actually integers.
-rw-r--r--routers/router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/router.php b/routers/router.php
index cee1c35..303b194 100644
--- a/routers/router.php
+++ b/routers/router.php
@@ -35,7 +35,7 @@ abstract class Router {
$this->requester = $requester;
if (isset($config['routers'][$id]['port'])) {
- $this->port = $config['routers'][$id]['port'];
+ $this->port = (int) $config['routers'][$id]['port'];
}
}