hyprpm: fix url sanitization in add

this could've been used to exec additional commands with hyprpm
This commit is contained in:
Vaxry 2026-03-01 20:57:24 +00:00
parent cf0d256c13
commit 5c370c3333
No known key found for this signature in database
GPG key ID: 665806380871D640
3 changed files with 17 additions and 7 deletions

View file

@ -94,7 +94,7 @@ CScreencopyFrame::CScreencopyFrame(SP<CZwlrScreencopyFrameV1> resource_, WP<CScr
return;
}
const auto stride = NFormatUtils::minStride(PSHMINFO, bufSize.x);
const auto stride = NFormatUtils::minStride(PSHMINFO, bufSize.x);
m_resource->sendBuffer(NFormatUtils::drmToShm(format), bufSize.x, bufSize.y, stride);
if (m_resource->version() >= 3) {