]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
maxNoticeLength test for url-shortening failed on maxContent==0
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 25 Sep 2013 20:48:32 +0000 (22:48 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 25 Sep 2013 20:48:32 +0000 (22:48 +0200)
commit858d9cc3c421a8fc900040ce13a575b09e482fc0
tree6821b44138aa6c26b99f9963712f0ee2a6e1ac2d
parente9cc87f5b9381d63bfc498151b7b508084451b22
maxNoticeLength test for url-shortening failed on maxContent==0

maxContent==0 implies that a notice text can be infinitely long, but
this value was directly transferred to maxNoticeLength, where 0 was
tested if it was longer than the notice length - which of course always
was false.

This commit fixes the problem for infinite length notices that always
got shortened.
actions/urlsettings.php
classes/User_urlshortener_prefs.php
lib/util.php