Overview
Comment:Make sure that skeletons can be downloaded, it's a funky security case, but hey it's easier like that
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev | 1.1.0-alpha7
Files: files | file ages | folders
SHA3-256: c7df5f56e65ef59845855d20e4a2c51c329586b40239b6dcf5ec272a643ba2a2
User & Date: bohwaz on 2021-03-19 22:36:46
Other Links: branch diff | manifest | tags
Context
2021-03-19
23:09
Merge trunk fixes check-in: 0e4057ab65 user: bohwaz tags: dev
22:36
Make sure that skeletons can be downloaded, it's a funky security case, but hey it's easier like that check-in: c7df5f56e6 user: bohwaz tags: dev, 1.1.0-alpha7
21:01
Make sure access to skeletons is possible, but only via Skeleton class check-in: f0156b82a1 user: bohwaz tags: dev, 1.1.0-alpha7
Changes

Modified src/include/lib/Garradin/Web/Web.php from [229d91f1c5] to [06fb7879ee].

136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
		}

		$page = null;

		if ($uri == '') {
			$skel = 'index.html';
		}
		elseif (substr($uri, 0, strlen(File::CONTEXT_SKELETON)) == File::CONTEXT_SKELETON) {
			$skel = '404.html';
		}
		elseif ($page = self::get($uri)) {
			$skel = $page->template();
			$page = $page->asTemplateArray();
		}
		else {
			// Trying to see if a custom template with this name exists
			if (preg_match('!^[\w\d_.-]+$!i', $uri)) {







<
<
<







136
137
138
139
140
141
142



143
144
145
146
147
148
149
		}

		$page = null;

		if ($uri == '') {
			$skel = 'index.html';
		}



		elseif ($page = self::get($uri)) {
			$skel = $page->template();
			$page = $page->asTemplateArray();
		}
		else {
			// Trying to see if a custom template with this name exists
			if (preg_match('!^[\w\d_.-]+$!i', $uri)) {