Skip to content
Browse files

Fixed a bug with tag template objects being slugified.

  • Loading branch information...
1 parent 9886db8 commit 20e1061bb311a56df61452436f415167f1bd1496 @ludovicchabant committed Mar 26, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/PieCrust/Util/UriBuilder.php
View
4 src/PieCrust/Util/UriBuilder.php
@@ -148,6 +148,10 @@ public static function slugify($value, $method)
if ($reserved == null)
$reserved = preg_quote(":/?#[]@!$&'()*+,;=\\ ", '/');
+ // Turn the value into a string, as it could actually be an
+ // instance of `PagePropertyData` or some other thing from the template.
+ $value = (string)$value;
+
// Apply the main slugify mode.
$mode = ($method & 0x000f);
switch ($mode)

0 comments on commit 20e1061

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