Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Fixed a bug with tag template objects being slugified.
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicchabant committed Mar 26, 2013
1 parent 9886db8 commit 20e1061
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PieCrust/Util/UriBuilder.php
Expand Up @@ -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)
Expand Down

0 comments on commit 20e1061

Please sign in to comment.