summaryrefslogtreecommitdiffstats
path: root/themes/engines/phptemplate/phptemplate.engine
diff options
context:
space:
mode:
Diffstat (limited to 'themes/engines/phptemplate/phptemplate.engine')
-rw-r--r--themes/engines/phptemplate/phptemplate.engine1
1 files changed, 1 insertions, 0 deletions
diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine
index ab481c7..df3943a 100644
--- a/themes/engines/phptemplate/phptemplate.engine
+++ b/themes/engines/phptemplate/phptemplate.engine
@@ -257,6 +257,7 @@ function phptemplate_page($content, $show_blocks = TRUE) {
$suggestion = 'page';
$suggestions = array($suggestion);
while ($arg = arg($i++)) {
+ $arg = str_replace(array('/', '\\', '\0'), '', $arg);
$suggestions[] = $suggestion . '-' . $arg;
if (!is_numeric($arg)) {
$suggestion .= '-' . $arg;