Skip to content

Commit 4ae3b23

Browse files
author
goldoraf
committed
Generated URLs are now encoded with htmlentities()
1 parent f33426d commit 4ae3b23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webflow/lib/url_rewriter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ private static function rewrite_url($path, $options)
9191
if (isset($options['trailing_slash'])) $url.= '/';
9292
if (isset($options['anchor'])) $url.= '#'.$options['anchor'];
9393

94+
if (!isset($options['escape']) || $options['escape'] == true) $url = htmlentities($url);
95+
9496
return $url;
9597
}
9698

0 commit comments

Comments
 (0)