Overview
Comment:Accept absolute URIs in links
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: e26b1d49702f59a9eaef359b1ef12394ba4a7a24ddfc64c80a6592453a8b6961
User & Date: bohwaz on 2021-04-02 14:42:21
Other Links: branch diff | manifest | tags
Context
2021-04-02
15:07
Add details on backup of files check-in: ba5c3a31fd user: bohwaz tags: dev
14:42
Accept absolute URIs in links check-in: e26b1d4970 user: bohwaz tags: dev
14:21
Fix background image saving check-in: bd250771e3 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Web/Render/Skriv.php from [f000051146] to [b19ec29cfd].

41
42
43
44
45
46
47




48
49
50
51
52
53
54
		}
	}

	static public function resolveLink(string $uri) {
		if (strpos(Utils::basename($uri), '.') === false) {
			$uri .= self::$link_suffix;
		}





		return self::$link_prefix . $uri;
	}

	static public function render(?File $file, ?string $content = null, array $options = []): string
	{
		if (!self::$skriv)







>
>
>
>







41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
		}
	}

	static public function resolveLink(string $uri) {
		if (strpos(Utils::basename($uri), '.') === false) {
			$uri .= self::$link_suffix;
		}

		if (substr($uri, 0, 1) == '/') {
			return WWW_URL . ltrim($uri, '/');
		}

		return self::$link_prefix . $uri;
	}

	static public function render(?File $file, ?string $content = null, array $options = []): string
	{
		if (!self::$skriv)