Revision | 3fc34aec18dccb1d7e4d96b10c3e2959d7b43a77 (tree) |
---|---|
Zeit | 2010-02-26 04:05:30 |
Autor | Toby Elliott <telliott@mozi...> |
Commiter | Toby Elliott |
we definitely need to prevent a / from appearing in ids
@@ -193,7 +193,7 @@ | ||
193 | 193 | function validate() |
194 | 194 | { |
195 | 195 | |
196 | - if (!$this->id() || mb_strlen($this->id(), '8bit') > 64) | |
196 | + if (!$this->id() || mb_strlen($this->id(), '8bit') > 64 || strpos($this->id(), '/') !== false) | |
197 | 197 | { $this->_error[] = "invalid id"; } |
198 | 198 | |
199 | 199 | if ($this->parentid_exists() && mb_strlen($this->parentid(), '8bit') > 64) |