<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/slcl/page.c, branch v0.3.1</title>
<subtitle>Small and lightweight cloud storage written in C99 and POSIX.1-2008.
</subtitle>
<id>https://gitea.privatedns.org/xavi/slcl/atom?h=v0.3.1</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/slcl/atom?h=v0.3.1'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/'/>
<updated>2025-01-23T22:37:39+00:00</updated>
<entry>
<title>main.c: Forbid sharing non-existing files</title>
<updated>2025-01-23T22:37:39+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2025-01-23T22:21:44+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=9752843329a257542c34798d65e829a6cff7764b'/>
<id>urn:sha1:9752843329a257542c34798d65e829a6cff7764b</id>
<content type='text'>
So far, slcl would allow to share literally any directory or file, even
if they did not exist, as long as valid credentials were given.

Now, directories cannot be shared, since this is already restricted by
the web interface. This is now considered an invalid request.

On the other hand, attempting to share non-existing files shall now
return a 404 Not Found response to the user.
</content>
</entry>
<entry>
<title>Implement directory paging</title>
<updated>2024-08-28T01:57:27+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-08-28T01:10:06+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=6b7acc7eaf401b2d4fdf615543f4364fc77b9255'/>
<id>urn:sha1:6b7acc7eaf401b2d4fdf615543f4364fc77b9255</id>
<content type='text'>
This allows directories with many files and directories inside them to
be split into pages, in order to limit resource usage.
</content>
</entry>
<entry>
<title>page.c: Do not get filename on previews</title>
<updated>2024-02-29T23:06:03+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-29T23:02:43+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=b4572c6217e869a236dc779120de1b057e30c652'/>
<id>urn:sha1:b4572c6217e869a236dc779120de1b057e30c652</id>
<content type='text'>
This change should provide the same behaviour, but would avoid
unnecessary calls to dynstr_append and basename(3) when a preview is to
be served.
</content>
</entry>
<entry>
<title>page.c: Use open(2) fdopen(3) and fstat(2)</title>
<updated>2024-02-19T22:35:09+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T22:20:25+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=6c3bfa270b1de6cdea0da8e351f92ec65e90c4f0'/>
<id>urn:sha1:6c3bfa270b1de6cdea0da8e351f92ec65e90c4f0</id>
<content type='text'>
Now, the same file descriptor can be reused for all of the operations
above, instead of calling stat(2) and fopen(3) separately.
</content>
</entry>
<entry>
<title>page.c: URL-encode href</title>
<updated>2024-02-19T22:35:09+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2024-02-19T22:09:58+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=78c8c4dabb62a6669cfd4eca231e39fd7fd4567a'/>
<id>urn:sha1:78c8c4dabb62a6669cfd4eca231e39fd7fd4567a</id>
<content type='text'>
Otherwise, files with special characters, such as '%', could not be
downloaded or previewed.
</content>
</entry>
<entry>
<title>Implement HEAD support</title>
<updated>2023-10-13T23:08:02+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-10-02T22:09:37+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=472b4ddbf151b44f5fc01c4c1752ce5529a0cf85'/>
<id>urn:sha1:472b4ddbf151b44f5fc01c4c1752ce5529a0cf85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>List number of files and directories</title>
<updated>2023-10-10T22:08:44+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-10-10T21:53:42+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=1d2ce3f9c235f0b6524bbedad0b2ff0abb838888'/>
<id>urn:sha1:1d2ce3f9c235f0b6524bbedad0b2ff0abb838888</id>
<content type='text'>
Sometimes, users want to know how many files and/or directories reside
on a directory. Now, slcl prints such information below the logout form.
</content>
</entry>
<entry>
<title>page.c: Force whitespace rendering</title>
<updated>2023-10-10T22:08:44+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-10-10T21:53:05+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=91f1a38d5cf33e9a5c9fcc81a9e55984d576f1c8'/>
<id>urn:sha1:91f1a38d5cf33e9a5c9fcc81a9e55984d576f1c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Apply slweb renaming to libweb</title>
<updated>2023-10-10T22:08:40+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-10-10T21:43:47+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=28ae865e5ecad9b398ac21fa148fc4b93c987226'/>
<id>urn:sha1:28ae865e5ecad9b398ac21fa148fc4b93c987226</id>
<content type='text'>
</content>
</entry>
<entry>
<title>page.c: Update project URL</title>
<updated>2023-09-08T22:19:07+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2023-09-08T22:19:07+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/slcl/commit/?id=7471da3886355199185a3b05a45b4c9b845d5a89'/>
<id>urn:sha1:7471da3886355199185a3b05a45b4c9b845d5a89</id>
<content type='text'>
</content>
</entry>
</feed>
