Skip to content

Commit

Permalink
Make quotes in the load tag optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Laager authored and speedmax committed Jan 25, 2010
1 parent cafb1cb commit ddf751d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h2o/tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class Load_Tag extends H2o_Node {
private $extension;

function __construct($argstring, $parser, $pos = 0) {
$this->extension = stripcslashes(substr($argstring, 1, -1));
$this->extension = stripcslashes(preg_replace("/^[\"'](.*)[\"']$/", "$1", $argstring));

if ($parser->runtime->searchpath)
$this->appendPath($parser->runtime->searchpath);
Expand Down

0 comments on commit ddf751d

Please sign in to comment.