# HG changeset patch # User Nicholas Jillings # Date 1484825111 0 # Node ID 9c7501dac6170998b15d21ffffcf8c0ab153ddb8 # Parent 0bce959c42ede86d5bede40d1c0c4a4fe98ce019 #49. Correct string concat diff -r 0bce959c42ed -r 9c7501dac617 php/requestKey.php --- a/php/requestKey.php Thu Jan 19 11:23:02 2017 +0000 +++ b/php/requestKey.php Thu Jan 19 11:25:11 2017 +0000 @@ -19,7 +19,7 @@ // Get the current test URL $testURL = ""; if (isset($_GET['url'])) { - $testURL = $_GET["url"]; + $testURL = "../".$_GET["url"]; } $saves = glob("../saves/*.xml"); @@ -58,7 +58,7 @@ $doc_struct = new SimpleXMLElement(''); $doc_struct->addAttribute("key",$key); // Add the root -if (file_exists("../".$testURL)) { +if (file_exists($testURL)) { $test_proto = new SimpleXMLElement(file_get_contents($testURL, FILE_TEXT)); $doc_struct->addChild($test_proto); }