Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a bug with tag template objects being slugified.

  • Loading branch information...
commit 20e1061bb311a56df61452436f415167f1bd1496 1 parent 9886db8
@ludovicchabant authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/PieCrust/Util/UriBuilder.php
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)
Please sign in to comment.
Something went wrong with that request. Please try again.